[Issue 241] New: Template function ICE

Thomas Kuehne thomas-dloop at kuehne.cn
Fri Jul 7 10:06:48 PDT 2006


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

d-bugmail at puremagic.com schrieb am 2006-07-06:
> http://d.puremagic.com/issues/show_bug.cgi?id=241

> T func(T, T c = 1)(T x) { return x * c; }
> void main() { func(1.0); }
>
> Generates (with DMD 0.162 linux):
> dmd: template.c:622: void TemplateDeclaration::declareParameter(Scope*,
> TemplateParameter*, Object*): Assertion `0' failed.

Added to DStress as
http://dstress.kuehne.cn/run/b/bug_template_622_A.d
http://dstress.kuehne.cn/run/b/bug_template_622_B.d
http://dstress.kuehne.cn/run/b/bug_template_622_C.d

Thomas


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

iD8DBQFErkkPLK5blCcjpWoRAjlyAJ0YlSkOiUS7B/4or7smStmAfahBaQCeIVFH
d0U7OoDuoMmndj5HyGWyGx8=
=mScX
-----END PGP SIGNATURE-----



More information about the Digitalmars-d-bugs mailing list