https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99806
--- Comment #3 from Marek Polacek <mpolacek at gcc dot gnu.org> --- A test that should be accepted: // PR c++/99806 struct S { template<typename T> void f(T) noexcept(B); static constexpr bool B = true; };