https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107211
Bug ID: 107211 Summary: GCC compiles invalid use of non static member function in noexcept operator Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: jlame646 at gmail dot com Target Milestone: --- The following invalid program is accepted by gcc trunk. Demo: https://godbolt.org/z/fez5GqKdT ``` struct C { void func() noexcept { } void f() noexcept(noexcept(C::func)) //gcc compiles this { } }; ``` This has been discussed here: https://stackoverflow.com/questions/74024368/gcc-compiles-use-of-noexcept-operator-but-clang-and-msvc-rejects-it