https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97966
--- Comment #3 from Marek Polacek <mpolacek at gcc dot gnu.org> --- Reduced (but invalid?): // PR c++/97966 template <int> struct S { __attribute__((used)) S() noexcept(noexcept(this->foo())); void foo(); }; void g () { S<1> s; }