1 // { dg-options "-std=c++17" } 2 3 template<typename T> 4 struct S; 5 6 template<bool IsNoexcept> 7 struct S<void(*)() noexcept(IsNoexcept)> { 8 S() {} 9 }; 10 11 void f() {} 12 13 int main() { 14 S<decltype(&f)> {}; 15 } 16