[Bug c++/88548] New: [9 Regression] this accepted in static member functions
mpolacek at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Dec 18 23:44:00 GMT 2018
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.
More information about the Gcc-bugs
mailing list