https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52869
Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed|2013-09-18 00:00:00 |2017-09-18 --- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> --- Testcase for both problems: struct S { void f() { } void g() noexcept(noexcept(f())) { } void h() noexcept(noexcept(this->f())) { } }; ne.cc:3:34: error: cannot call member function ‘void S::f()’ without object void g() noexcept(noexcept(f())) { } ^ ne.cc:4:32: error: invalid use of ‘this’ at top level void h() noexcept(noexcept(this->f())) { } ^~~~