1 // PR c++/86476 - noexcept-specifier is a complete-class context
2 // { dg-do compile { target c++11 } }
3 
4 #define SA(X) static_assert(X, #X)
5 
6 struct S {
7   static void f1() noexcept(b);
8   static constexpr auto b = true;
9 };
10 
11 S s;
12 SA(noexcept(s.f1()));
13