Debian Codegraph @

gcc/testsuite/g++.dg/cpp2a/explicit17.C

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