https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88548
Bug ID: 88548 Summary: [9 Regression] this accepted in static member functions Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: mpolacek at gcc dot gnu.org Target Milestone: --- Since r266224, we accept this program: struct S { int a; static void fn() noexcept(noexcept(this->a)) { } }; but because fn is static, this should be ill-formed.