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
Zug(int Z)9 struct Zug(int Z)
10 {
11     const bahn = Bug4094!(0).hof.bahn;
12 }
13 
Bug4094(int Q)14 struct Bug4094(int Q)
15 {
16     Zug!(0) hof;
17 }
18 
19 const a = Zug!(0).bahn;
20