https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115898
Bug ID: 115898 Summary: Invalid use of non-static member function in noexcept is not diagnosed Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: luigighiron at gmail dot com Target Milestone: --- GCC does not diagnose the following statement: noexcept(std::cout.operator<<); This is an invalid use of the non-static member function, but GCC seems to accept it anyway. Clang and MSVC reject this. Note that GCC rejects the statement "std::cout.operator<<;" on its own without using noexcept here.