gcc/testsuite/gdc.test/fail_compilation/fail19336.d
raw| 1 | /* |
| 2 | TEST_OUTPUT: |
| 3 | --- |
| 4 | fail_compilation/fail19336.d(14): Error: template instance `Template!()` template `Template` is not defined |
| 5 | fail_compilation/fail19336.d(14): Error: circular reference to `fail19336.Foo.a` |
| 6 | fail_compilation/fail19336.d(17): Error: circular reference to `fail19336.b` |
| 7 | --- |
| 8 | */ |
| 9 | |
| 10 | // https://issues.dlang.org/show_bug.cgi?id=19336 |
| 11 | |
| 12 | struct Foo |
| 13 | { |
| 14 | Template!() a(a.x); |
| 15 | } |
| 16 | |
| 17 | int b(b.x); |