www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 11273] New: inequable template alias parameters can be mangled identically

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=11273

           Summary: inequable template alias parameters can be mangled
                    identically
           Product: D
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: wazar.leollone yahoo.com



07:14:03 PDT ---
For example: 

void test(alias a)()
{
}

void main()
{
   assert(test!(real.infinity).mangleof == test!(real.max).mangleof);
}

This fact means that different symbols (test!(real.infinity) and
test!(real.max)) will be written into object file with the same name. It's
cause ld warning in linux and VisualStudio linker error (see big example in
attachment).

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Oct 15 2013
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=11273




07:15:42 PDT ---
Created an attachment (id=1265)
issue example

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Oct 15 2013