www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 731] New: Positive and negative NaN in template arguments causes link conflict

reply d-bugmail puremagic.com writes:
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.


-- 
Dec 23 2006
next sibling parent Thomas Kuehne <thomas-dloop kuehne.cn> writes:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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 -----BEGIN PGP SIGNATURE----- iD8DBQFFkQH4LK5blCcjpWoRAtx8AJ9neLkasLDkDir6Cff/kE0SCxihWgCfZeHr L/7BmZkvK+di8frRG6Y6Cas= =aZL0 -----END PGP SIGNATURE-----
Dec 26 2006
prev sibling parent d-bugmail puremagic.com writes:
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


-- 
Jan 03 2007