Bug 76 – Using a non-template struct as a template

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P3
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86
OS
Windows
Creation time
2006-03-28T14:06:00Z
Last change time
2014-02-14T20:33:24Z
Keywords
diagnostic
Assigned to
bugzilla
Creator
nail-mail

Comments

Comment #0 by nail-mail — 2006-03-28T14:06:33Z
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'"
Comment #1 by thomas-dloop — 2006-04-01T14:30:24Z
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 [email protected] 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 -----BEGIN PGP SIGNATURE----- iD8DBQFELu0q3w+/yD4P9tIRAlMgAKDGjA6flJ8bP9o1FR9SDowppwVKhQCfc/7I AZW9ugRFY8bBzvLRaHeZs8s= =uAR/ -----END PGP SIGNATURE-----
Comment #2 by bugzilla — 2006-06-20T02:14:05Z
Fixed 0.161