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
simulate-thread tests: Silence gdb debuginfod warning
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
range-for31.C
blob
833f510d2cc58ebcff720b333b4bcb99519f10f4
1
// PR c++/71604
2
// { dg-do compile { target c++11 } }
3
4
void foo ()
5
{
6
int a[2] = { 1, 2 };
7
for (struct S { S (int) {} } S : a) // { dg-error "types may not be defined" }
8
;
9
}