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
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
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49003
Jonathan Wakely changed:
What|Removed |Added
Status|UNCONFIRMED |NEW
Last reconfirmed|