[Issue 11273] New: inequable template alias parameters can be mangled identically

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Oct 15 07:14:04 PDT 2013


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 at puremagic.com
        ReportedBy: wazar.leollone at yahoo.com


--- Comment #0 from Igor Stepanov <wazar.leollone at yahoo.com> 2013-10-15 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: -------


More information about the Digitalmars-d-bugs mailing list