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
Clean up some minor white space issues in trans-decl.c and trans-expr.c
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
ext
/
anon-struct6.C
blob
66d4b32719621c37067b7c85e0f8ed0268e238be
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|unnamed class" }
8
void foo() { i; }
9
}; // { dg-error "prohibits anonymous structs" }
10
};