[Bug c++/45908] [C++0x] ICE involving decltype: in tree_low_cst, at tree.h:4114
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Oct 6 10:37:00 GMT 2010
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45908
--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> 2010-10-06 10:37:19 UTC ---
The second testcase is a different issue which can be reduced to:
class block {
auto f() const -> decltype(i);
int i;
};
name lookup in the member function's trailing-return-type does not find
members of the enclosing class which have not been declared yet
(additionally, the diagnostic is given twice)
I think that's wrong because the trailing-return-type follows the function's
declarator-id, so [basic.lookup.unqual]p8 applies, but I'll leave Jason to
clarify that
More information about the Gcc-bugs
mailing list