summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gdc.test/fail_compilation/ice13220.d
blob: 3affd54858fdce63ebc33ca48685e3ef8e02bde4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*
TEST_OUTPUT:
---
fail_compilation/ice13220.d(22): Error: template instance test!0 does not match template declaration test(T)()
---
*/

struct Tuple(T...)
{
    T field;
    alias field this;
}

template test(T)
{
    bool test() { return false; };
}

void main()
{
    Tuple!bool t;
    t[0] = test!0();
}