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
Merged with mainline at revision 128810.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
ext
/
anon-struct6.C
blob
11a7bbd6076245a482d7905dc532aec3ad53ead2
1
// PR c++/33460
2
3
struct A
4
{
5
struct
6
{ // { dg-error "anonymous struct cannot have function members" }
7
struct { static int i; }; // { dg-error "prohibits anonymous structs|non-static data members" }
8
void foo() { i; }
9
}; // { dg-error "prohibits anonymous structs" }
10
};