[Issue 9756] New: "duplicate COMDAT" with templated functions in static foreach

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Mar 19 02:53:56 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=9756

           Summary: "duplicate COMDAT" with templated functions in static
                    foreach
           Product: D
           Version: D2
          Platform: x86_64
        OS/Version: Windows
            Status: NEW
          Keywords: link-failure
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: thecybershadow at gmail.com


--- Comment #0 from Vladimir Panteleev <thecybershadow at gmail.com> 2013-03-19 11:53:54 EET ---
template Tuple(T...) { alias T Tuple; }

void main()
{
    foreach (n; Tuple!(1, 2, 3))
    {
        void f()() {}
        f();
    }
}


Happens only on Win64.

Possibly related to issue 9748.

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