Debian Codegraph @

gcc/testsuite/gdc.test/fail_compilation/ice14146.d

raw
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/ice14146.d(15): Error: constructor `ice14146.Array.this` default constructor for structs only allowed with `@disable`, no body, and no parameters
5 ---
6 */
7
8 struct RangeT(A)
9 {
10 A[1] XXXouter;
11 }
12
13 struct Array
14 {
15 this()
16 {
17 }
18
19 alias Range = RangeT!Array;
20
21 bool opEquals(Array)
22 {
23 }
24 }