]>
Commit | Line | Data |
---|---|---|
b4c522fa IB |
1 | /* |
2 | TEST_OUTPUT: | |
3 | --- | |
4 | fail_compilation/ice13921.d(13): Error: undefined identifier `undefined_identifier` | |
5fee5ec3 | 5 | fail_compilation/ice13921.d(25): Error: template instance `ice13921.S!string` error instantiating |
b4c522fa IB |
6 | --- |
7 | */ | |
8 | ||
9 | struct S(N) | |
10 | { | |
11 | void fun() | |
12 | { | |
13 | undefined_identifier; | |
14 | // or anything that makes the instantiation fail | |
15 | } | |
16 | ||
17 | } | |
18 | ||
19 | void test(T)(S!T) | |
20 | { | |
21 | } | |
22 | ||
23 | void main() | |
24 | { | |
25 | S!string g; | |
26 | test(g); | |
27 | } |