digitalmars.D.bugs - [Issue 651] New: Assertion failure: 'global.errors' on line 2622 in file 'template.c'
- d-bugmail puremagic.com (30/30) Dec 05 2006 http://d.puremagic.com/issues/show_bug.cgi?id=651
- Thomas Kuehne (12/29) Dec 10 2006 -----BEGIN PGP SIGNED MESSAGE-----
- d-bugmail puremagic.com (9/9) Dec 27 2006 http://d.puremagic.com/issues/show_bug.cgi?id=651
http://d.puremagic.com/issues/show_bug.cgi?id=651 Summary: Assertion failure: 'global.errors' on line 2622 in file 'template.c' Product: D Version: 0.176 Platform: PC OS/Version: Windows Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: bugzilla digitalmars.com ReportedBy: kinaba is.s.u-tokyo.ac.jp 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? --
Dec 05 2006
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 d-bugmail puremagic.com schrieb am 2006-12-05:http://d.puremagic.com/issues/show_bug.cgi?id=651The 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-----
Dec 10 2006
http://d.puremagic.com/issues/show_bug.cgi?id=651 bugzilla digitalmars.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED Fixed DMD 0.178 --
Dec 27 2006