blob: 0b144f45a9d940b021e566611fd051766cfa1194 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
// PR c++/114439
// { dg-do compile { target c++11 } }
struct S {
int *list = arr;
__extension__ int arr[];
};
struct R {
int *list = arr;
int arr[2];
};
struct A {
A() {}
S s[2]{};
};
struct A2 {
A2() {}
S s[2]{ {}, {} };
};
struct B {
B() {}
R r[2]{};
};
struct B2 {
B2() {}
R r[2]{ {}, {} };
};
struct S1 { S1(); };
struct S2 {
S2() {}
S1 a[1] {};
};
|