------- 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’: 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