1 // Issue 76 - Using a non-template struct as a template 2 // Compiling leads to "Assertion failure: 's->parent' on line 1694 in file 3 // 'template.c'" 4 5 struct S 6 { TS7 template T() 8 { 9 void x(int i) 10 { 11 } 12 } 13 } 14 C(P)15class C(P) 16 { 17 mixin P!().T!(); 18 } 19 main(char[][]args)20int main(char[][] args) 21 { 22 auto c = new C!(S); 23 24 return 0; 25 } 26