https://d.puremagic.com/issues/show_bug.cgi?id=12044


Vladimir Panteleev <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |wrong-code


--- Comment #4 from Vladimir Panteleev <[email protected]> 2014-02-05 
01:00:09 EET ---
Reduced test case:

//////////////////////////////////////////
struct S(T)
{
    void f()()
    {
        new T[1];
    }

    bool opEquals(O)(O)
    {
        f();
    }
}

void main()
{
    ()
    {
        enum E { e }
        auto arr = [E.e];
        S!E s;
    }
    ();
}
//////////////////////////////////////////

On Win64, this produces the error:
test.exe.obj : fatal error LNK1179: invalid or corrupt file: duplicate COMDAT
'_D45TypeInfo_AE4test4mainFZv9__lambda1FNaNbNfZv1E6__initZ'

As I suspected, the Phobos change only uncovered a compiler problem.

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

Reply via email to