Thread overview
[Issue 731] New: Positive and negative NaN in template arguments causes link conflict
Dec 23, 2006
d-bugmail
Dec 26, 2006
Thomas Kuehne
Jan 04, 2007
d-bugmail
December 23, 2006
http://d.puremagic.com/issues/show_bug.cgi?id=731

           Summary: Positive and negative NaN in template arguments causes
                    link conflict
           Product: D
           Version: 0.177
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: link-failure
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla@digitalmars.com
        ReportedBy: dvdfrdmn@users.sf.net


---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.


-- 

December 26, 2006
d-bugmail@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


January 04, 2007
http://d.puremagic.com/issues/show_bug.cgi?id=731


bugzilla@digitalmars.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




------- Comment #2 from bugzilla@digitalmars.com  2007-01-03 22:07 -------
Fixed DMD 1.00


--