[Issue 731] New: Positive and negative NaN in template arguments causes link conflict

Thomas Kuehne thomas-dloop at kuehne.cn
Tue Dec 26 06:30:17 PST 2006


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

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

> ---code----
> template T(double v)
> {
>     double T = v;
> }
>
> double g;
>
> void main()
> {
>     g = T!(double.nan) + T!(-double.nan);
> }
> --------
>
> Linking results in duplicate symbol errors.

Added to DStress as
http://dstress.kuehne.cn/run/t/template_51_A.d
http://dstress.kuehne.cn/run/t/template_51_B.d
http://dstress.kuehne.cn/run/t/template_51_C.d
http://dstress.kuehne.cn/run/t/template_51_D.d
http://dstress.kuehne.cn/run/t/template_51_E.d
http://dstress.kuehne.cn/run/t/template_51_F.d
http://dstress.kuehne.cn/run/t/template_51_G.d
http://dstress.kuehne.cn/run/t/template_51_H.d
http://dstress.kuehne.cn/run/t/template_51_I.d

Thomas


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

iD8DBQFFkQH4LK5blCcjpWoRAtx8AJ9neLkasLDkDir6Cff/kE0SCxihWgCfZeHr
L/7BmZkvK+di8frRG6Y6Cas=
=aZL0
-----END PGP SIGNATURE-----


More information about the Digitalmars-d-bugs mailing list