[Bug 76] New: Using a non-template struct as a template
Thomas Kuehne
thomas-dloop at kuehne.cn
Sat Apr 1 12:28:07 PST 2006
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
d-bugmail at 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
-----BEGIN PGP SIGNATURE-----
iD8DBQFELu0q3w+/yD4P9tIRAlMgAKDGjA6flJ8bP9o1FR9SDowppwVKhQCfc/7I
AZW9ugRFY8bBzvLRaHeZs8s=
=uAR/
-----END PGP SIGNATURE-----
More information about the Digitalmars-d-bugs
mailing list