Debian Codegraph @

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

raw
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/ice11553.d(22): Error: recursive template expansion while looking for `A!().A()`
5 fail_compilation/ice11553.d(22): Error: expression `A()` of type `void` does not have a boolean value
6 ---
7 */
8
9 template A(alias T)
10 {
11 template A()
12 {
13 alias A = T!();
14 }
15 }
16
17 template B()
18 {
19 alias B = A!(.B);
20 }
21
22 static if (A!B) {}