public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/31555] New: stable_partition assumes iterator difference type is always ptrdiff_t
@ 2007-04-12 18:08 djg at cray dot com
2007-04-12 18:09 ` [Bug libstdc++/31555] " djg at cray dot com
0 siblings, 1 reply; 2+ messages in thread
From: djg at cray dot com @ 2007-04-12 18:08 UTC (permalink / raw)
To: gcc-bugs
Instantiating stable_partition with an iterator where the difference_type is
something different than ptrdiff_t results in an error like this:
.../bits/stl_algo.h: In function `_ForwardIterator
std::stable_partition(_ForwardIterator, _ForwardIterator, _Predicate) [with
_ForwardIterator = my_iterator, _Predicate = bool (*)(double)]':
test.c:32: instantiated from here
.../bits/stl_algo.h:2154: error: no matching function for call to
`__stable_partition_adaptive(my_iterator&, my_iterator&, bool (*&)(double),
short int, double*, ptrdiff_t)'
The __stable_parition_adaptive effectively requires the __len and __buffer_size
arguments to have the same type, and stable_parition calls it with one of them
always as ptrdiff_t.
--
Summary: stable_partition assumes iterator difference type is
always ptrdiff_t
Product: gcc
Version: 4.1.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libstdc++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: djg at cray dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31555
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug libstdc++/31555] stable_partition assumes iterator difference type is always ptrdiff_t
2007-04-12 18:08 [Bug libstdc++/31555] New: stable_partition assumes iterator difference type is always ptrdiff_t djg at cray dot com
@ 2007-04-12 18:09 ` djg at cray dot com
0 siblings, 0 replies; 2+ messages in thread
From: djg at cray dot com @ 2007-04-12 18:09 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from djg at cray dot com 2007-04-12 19:09 -------
*** This bug has been marked as a duplicate of 31554 ***
--
djg at cray dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |DUPLICATE
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31555
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-04-12 18:09 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-04-12 18:08 [Bug libstdc++/31555] New: stable_partition assumes iterator difference type is always ptrdiff_t djg at cray dot com
2007-04-12 18:09 ` [Bug libstdc++/31555] " djg at cray dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).