Bug 731 – Positive and negative NaN in template arguments causes link conflict

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
All
OS
All
Creation time
2006-12-23T12:29:00Z
Last change time
2014-02-15T13:19:17Z
Keywords
link-failure
Assigned to
bugzilla
Creator
dvdfrdmn

Comments

Comment #0 by dvdfrdmn — 2006-12-23T12:29:35Z
---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.
Comment #1 by thomas-dloop — 2006-12-26T08:35:58Z
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 [email protected] 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-----
Comment #2 by bugzilla — 2007-01-03T22:07:35Z
Fixed DMD 1.00