Debian Codegraph @

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

raw
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/ice13816.d(17): Error: template instance `TypeTuple!(ItemProperty!())` recursive template expansion
5 fail_compilation/ice13816.d(17): Error: alias `ice13816.ItemProperty!().ItemProperty` recursive alias declaration
6 fail_compilation/ice13816.d(22): Error: template instance `ice13816.ItemProperty!()` error instantiating
7 ---
8 */
9
10
11 alias TypeTuple(T...) = T;
12
13 template ItemProperty()
14 {
15 static if (true)
16 {
17 alias ItemProperty = TypeTuple!(ItemProperty!());
18 }
19 }
20 void main()
21 {
22 alias items = ItemProperty!();
23
24 enum num = items.length;
25 }