]> git.ipfire.org Git - people/ms/gcc.git/blob - gcc/testsuite/gdc.test/fail_compilation/ice13816.d
e683e339e6125095a18ca97fc3413fb7bd99837e
[people/ms/gcc.git] / gcc / testsuite / gdc.test / fail_compilation / ice13816.d
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/ice13816.d(15): Error: alias `ice13816.ItemProperty!().ItemProperty` recursive alias declaration
5 fail_compilation/ice13816.d(20): Error: template instance `ice13816.ItemProperty!()` error instantiating
6 ---
7 */
8
9 alias TypeTuple(T...) = T;
10
11 template ItemProperty()
12 {
13 static if (true)
14 {
15 alias ItemProperty = TypeTuple!(ItemProperty!());
16 }
17 }
18 void main()
19 {
20 alias items = ItemProperty!();
21
22 enum num = items.length;
23 }