Update concepts branch to revision 131834
[official-gcc.git] / gcc / testsuite / g++.dg / parse / ctor7.C
blob9fa051b79812dcd0bc9c67d185f0c775bbd534ab
1 //PR c++/28505
3 struct A
5     A : ();     // { dg-error "primary-expression|incomplete type" }
6     A : (int);  // { dg-error "primary-expression|incomplete type|'int'" }
7 };
9 struct B
11     char c;
12     A a;
15 B b = (B){0};   // { dg-error "compound-literals" }