[Bug libstdc++/40497] invalid std::next / std::prev declaration
rguenth at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sat Jun 20 13:04:00 GMT 2009
------- Comment #6 from rguenth at gcc dot gnu dot org 2009-06-20 13:04 -------
Confirmed (testcase from comment #4 with -std=c++0x).
It looks like a failure to honor SFINAE?
$ g++-4.4 -S -std=c++0x t.C
In file included from /usr/include/c++/4.4/bits/stl_algobase.h:67,
from /usr/include/c++/4.4/bits/char_traits.h:41,
from /usr/include/c++/4.4/string:42,
from t.C:13:
/usr/include/c++/4.4/bits/stl_iterator_base_types.h: In instantiation of
Âstd::iterator_traits<X::C>Â:
t.C:19: instantiated from here
/usr/include/c++/4.4/bits/stl_iterator_base_types.h:127: error: no type named
Âiterator_category in Âclass X::CÂ
/usr/include/c++/4.4/bits/stl_iterator_base_types.h:128: error: no type named
Âvalue_type in Âclass X::CÂ
/usr/include/c++/4.4/bits/stl_iterator_base_types.h:129: error: no type named
Âdifference_type in Âclass X::CÂ
/usr/include/c++/4.4/bits/stl_iterator_base_types.h:130: error: no type named
Âpointer in Âclass X::CÂ
/usr/include/c++/4.4/bits/stl_iterator_base_types.h:131: error: no type named
Âreference in Âclass X::CÂ
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |NEW
Ever Confirmed|0 |1
Keywords| |rejects-valid
Last reconfirmed|0000-00-00 00:00:00 |2009-06-20 13:04:18
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40497
More information about the Gcc-bugs
mailing list