[Issue 651] New: Assertion failure: 'global.errors' on line 2622 in file 'template.c'

Thomas Kuehne thomas-dloop at kuehne.cn
Sun Dec 10 09:01:07 PST 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

d-bugmail at puremagic.com schrieb am 2006-12-05:
> http://d.puremagic.com/issues/show_bug.cgi?id=651

> The following program, forwarding an alias tuple to another
> template, casues abnormal compiler termination:
>
>   // discovered by shinichiro.h
>   void f() {}
>   template foo(T) {}
>   template bar(T...){ alias foo!(T) buz; }
>   alias bar!(f) a;
>
> which prints:
>
>   Assertion failure: 'global.errors' on line 2622 in file 'template.c'
>
>   abnormal program termination
>
> Here's my experiment of replacing "void f() {}" to other statements:
>  - import f : same assertion failure
>  - class f {} : ok
>  - int f : ok
>  - const f = 1 : ok
> So it is a problem of alias tuples?

Added to DStress as
http://dstress.kuehne.cn/nocompile/b/bug_template_2622_A.d
http://dstress.kuehne.cn/nocompile/b/bug_template_2622_B.d

Thomas


-----BEGIN PGP SIGNATURE-----

iD8DBQFFfDujLK5blCcjpWoRAq96AJwM7x3xxGXAKh1v91L4xHIxomaDjwCeIL6j
vNsxKjmm9dw0A3oZRf2suKQ=
=XC2R
-----END PGP SIGNATURE-----


More information about the Digitalmars-d-bugs mailing list