repo.or.cz
/
gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fortran: Fix PR 47485.
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
desig3.C
blob
5c27833d5c19b1bb19dfcb397d076d9ba33db550
1
// PR c++/82593
2
// { dg-do compile { target c++11 } }
3
// { dg-options "" }
4
5
const int INDEX1 = 0;
6
const int INDEX2 = 1;
7
8
class SomeClass {
9
public:
10
SomeClass();
11
private:
12
struct { int field; } member[2];
13
};
14
15
SomeClass::SomeClass()
16
: member{
17
[INDEX1] = { .field = 0 },
18
[INDEX2] = { .field = 1 }
19
}
20
{
21
}