repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Update concepts branch to revision 131834
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
parse
/
ctor7.C
blob
9fa051b79812dcd0bc9c67d185f0c775bbd534ab
1
//PR c++/28505
2
3
struct A
4
{
5
A : (); // { dg-error "primary-expression|incomplete type" }
6
A : (int); // { dg-error "primary-expression|incomplete type|'int'" }
7
};
8
9
struct B
10
{
11
char c;
12
A a;
13
};
14
15
B b = (B){0}; // { dg-error "compound-literals" }