[Bug c++/88548] [9 Regression] this accepted in static member functions

mpolacek at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sat Dec 22 03:55:00 GMT 2018


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88548

--- Comment #3 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Related testcase that should also be rejected:

struct S {
  friend auto bar() -> decltype(this);
};


More information about the Gcc-bugs mailing list