Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/noexcept66.C

raw
1 // PR c++/99844
2 // { dg-do compile { target c++11 } }
3
4 template <bool... B>
5 struct S {
6 void fn() noexcept(B); // { dg-error "parameter packs not expanded" }
7 };
8
9 void fn ()
10 {
11 S<true> s;
12 s.fn();
13 }