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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Dec 23 10:29:44 PST 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 at digitalmars.com
        ReportedBy: dvdfrdmn at 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.


-- 



More information about the Digitalmars-d-bugs mailing list