Debian Codegraph @

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

raw
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/ice4094.d(11): Error: circular reference to variable `ice4094.Zug!0.Zug.bahn`
5 fail_compilation/ice4094.d(19): Error: template instance `ice4094.Zug!0` error instantiating
6 ---
7 */
8 // REQUIRED_ARGS: -d
9 struct Zug(int Z)
10 {
11 const bahn = Bug4094!(0).hof.bahn;
12 }
13
14 struct Bug4094(int Q)
15 {
16 Zug!(0) hof;
17 }
18
19 const a = Zug!(0).bahn;