]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/gdc.test/fail_compilation/ice13220.d
d: Import dmd b8384668f, druntime e6caaab9, phobos 5ab9ad256 (v2.098.0-beta.1)
[thirdparty/gcc.git] / gcc / testsuite / gdc.test / fail_compilation / ice13220.d
CommitLineData
b4c522fa
IB
1/*
2TEST_OUTPUT:
3---
5fee5ec3 4fail_compilation/ice13220.d(22): Error: template instance `test!0` does not match template declaration `test(T)()`
b4c522fa
IB
5---
6*/
7
8struct Tuple(T...)
9{
10 T field;
11 alias field this;
12}
13
14template test(T)
15{
16 bool test() { return false; };
17}
18
19void main()
20{
21 Tuple!bool t;
22 t[0] = test!0();
23}