https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115818
Bug ID: 115818 Summary: Infinite recursive in noexcept operator is not detected Product: gcc Version: 14.1.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: fchelnokov at gmail dot com Target Milestone: --- This program ``` struct C { void f() noexcept(noexcept(f())) {} }; ``` is rejected by both Clang and MSVC, because noexcept of f() is defined with infinite recursion. But GCC accepts the program, which looks wrong. Online demo: https://gcc.godbolt.org/z/abTc7sG4v Original discussion: https://stackoverflow.com/q/74015227/7325599