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
PR c++/85765 - SFINAE and non-type default template arg.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
desig3.C
blob
0a50b742d450eb1d949b11307088adf44b52d3c3
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
}