March 28, 2006 [Bug 76] New: Using a non-template struct as a template | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/bugzilla/show_bug.cgi?id=76 Summary: Using a non-template struct as a template Product: D Version: 0.148 Platform: PC OS/Version: Windows Status: NEW Keywords: diagnostic Severity: normal Priority: P3 Component: DMD AssignedTo: bugzilla@digitalmars.com ReportedBy: nail-mail@mail.ru struct S { template T() { void x(int i) { } } } class C(P) { mixin P!().T!(); } int main(char[][] args) { auto c = new C!(S); return 0; } Compiling leads to "Assertion failure: 's->parent' on line 1694 in file 'template.c'" -- |
April 01, 2006 Re: [Bug 76] New: Using a non-template struct as a template | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail Attachments: | d-bugmail@puremagic.com schrieb am 2006-03-28: > struct S > { > template T() > { > void x(int i) > { > } > } > } > > class C(P) > { > mixin P!().T!(); > } > > int main(char[][] args) > { > auto c = new C!(S); > > return 0; > } > > Compiling leads to "Assertion failure: 's->parent' on line 1694 in file 'template.c'" Added to DStress as http://dstress.kuehne.cn/nocompile/m/mixin_18_A.d http://dstress.kuehne.cn/nocompile/m/mixin_18_B.d http://dstress.kuehne.cn/nocompile/m/mixin_18_C.d http://dstress.kuehne.cn/nocompile/m/mixin_18_D.d Thomas |
Copyright © 1999-2021 by the D Language Foundation