1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/ice14621.d(22): Error: static assert  `false` is false
5 fail_compilation/ice14621.d(28):        instantiated from here: erroneousTemplateInstantiation!()
6 ---
7 */
8 
main()9 void main()
10 {
11     S s;
12     s.foo();
13 }
14 
15 struct S
16 {
17     float[] array;
18     alias array this;
19 
erroneousTemplateInstantiationS20     template erroneousTemplateInstantiation()
21     {
22         static assert(false);
23     }
24 
fooS25     void foo()
26     {
27         S ret;
28         ret[] = erroneousTemplateInstantiation!();
29     }
30 }
31