www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 11081] New: Win64: duplicate COMDAT with failed compilation with lambdas

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

           Summary: Win64: duplicate COMDAT with failed compilation with
                    lambdas
           Product: D
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: regression
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: r.sagitario gmx.de



PDT ---
With current git-HEAD, this code snippet extracted from the std.exception
unittests:

T ifThrown2(E : Throwable, T)(T delegate(E) errorHandler)
{
    return errorHandler();
}

unittest
{
    static if (__traits(compiles, ifThrown2!Exception(e => 0)))
    {
    }
    static if (__traits(compiles, ifThrown2!Exception(e => 0)))
    {
    }
}

compiled with "dmd -m64 -unittest -main" results in:

test.obj : fatal error LNK1179: invalid or corrupt file: duplicate COMDAT
'_D4te
st15__unittestL32_5FZv17__T0TC9ExceptionZ0MFNaNbNfC9ExceptionZi'

This does not happen with dmd 2.063. The code actually does not compile, so it
seems that broken code is emitted to the object file.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Sep 21 2013
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=11081


Rainer Schuetze <r.sagitario gmx.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull



PDT ---
https://github.com/D-Programming-Language/dmd/pull/2578

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Sep 21 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=11081


Kenji Hara <k.hara.pg gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |link-failure




 https://github.com/D-Programming-Language/dmd/pull/2578
Another one: https://github.com/D-Programming-Language/dmd/pull/2579 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Sep 21 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=11081




Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/e1ed2905b2b7e996a4154d079fd8a8660424b5af
fix Issue 11081 - Win64: duplicate COMDAT with failed compilation with lambdas

https://github.com/D-Programming-Language/dmd/commit/4981236072fc4625b959d9146d073e808436f334


[REG2.064a] Issue 11081 - Win64: duplicate COMDAT with failed compilation with
lambdas

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Sep 22 2013
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=11081


Kenji Hara <k.hara.pg gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


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