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
/
desig2.C
blob
5ac2d15d95216dccee242db413124d4f91e3f364
1
// PR c++/82593
2
// { dg-do compile { target c++11 } }
3
// { dg-options "" }
4
5
enum {
6
INDEX1 = 0,
7
INDEX2
8
};
9
10
class SomeClass {
11
public:
12
SomeClass();
13
private:
14
struct { int field; } member[2];
15
};
16
17
SomeClass::SomeClass()
18
: member({
19
[INDEX1] = { .field = 0 },
20
[INDEX2] = { .field = 1 }
21
})
22
{
23
}