[Bug c++/49003] [C++0x] decltype in member function's trailing return type should deduce constness of *this

2011-05-16 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49003 --- Comment #3 from Jonathan Wakely 2011-05-16 14:48:13 UTC --- A simpler test for DR 1207 being implemented is: struct A { auto a() const -> decltype(this) { return this; } }; nc.cc:2:32: error: invalid use of 'this' at top level nc.cc:2:3

[Bug c++/49003] [C++0x] decltype in member function's trailing return type should deduce constness of *this

2011-05-16 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49003 --- Comment #2 from Jonathan Wakely 2011-05-16 11:09:05 UTC --- ah I was thinking of PR 45908 (where I provided that reduced testcase - I knew it looked familiar!) but that was for an ICE which is fixed, so this one should be kept for the change

[Bug c++/49003] [C++0x] decltype in member function's trailing return type should deduce constness of *this

2011-05-15 Thread redi at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49003 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|