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
/
nsdmi-list9.C
blob
ae69ba0810dc53d47f94db5869f7425db87b0fe5
1
// PR c++/118355
2
// { dg-do compile { target c++11 } }
3
4
enum MY_ENUM
5
{
6
ZERO,
7
};
8
9
struct FOO
10
{
11
MY_ENUM type = ZERO;
12
};
13
14
struct ARR
15
{
16
FOO array[1] = {};
17
};
18
19
template<typename>
20
struct ARR2
21
{
22
FOO array[1] = {};
23
};
24
25
void
26
g ()
27
{
28
29
ARR arr;
30
arr = {};
31
32
ARR2<int> arr2;
33
arr2 = {};
34
}