eh: ICE with std::initializer_list and ASan [PR115865]
[official-gcc.git] / gcc / testsuite / g++.dg / concepts / var-concept7.C
blob441fbacd321fb4b3aac3edef3ddf408ff9649362
1 // PR c++/85133
2 // { dg-do compile { target c++17 } }
3 // { dg-options "-fconcepts" }
5 /* The error with "concept bool" used to be "variable concept has no
6     initializer" which is much better.  Let's at least test that we
7     do not crash.  */
9 template<typename> concept C; // { dg-error "expected" }
11 template<C...> struct A {}; // { dg-error "declared" }
13 A<int> a; // { dg-error "" }