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