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
Fix broken MinGW build of gcc.c
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
diagnostic
/
bitfld2.C
blob
46d5ee2ab784fb17c4ab446f3b426224609ff89e
1
// PR c++/33840
2
// { dg-do compile }
3
4
template<int> struct A
5
{
6
struct {} : 2; // { dg-error "expected ';' after struct" "expected" }
7
};
8
// { dg-error "ISO C.. forbids declaration" "declaration" { target *-*-* } 6 }
9
// { dg-error "ISO C.. prohibits anonymous" "anonymous" { target *-*-* } 6 }