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


Shahid <govell...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |govell...@gmail.com


--- Comment #7 from Shahid <govell...@gmail.com> 2012-07-10 09:45:07 PDT ---
void main()
{
    enum E { a=1, b=2 }

    // Fail at link
    // undefined reference to `_Dmain1E6__initZ'

    E[ string ] fail1 = [ "a":E.a, "b":E.b ];

    string[ E ] fail2 = [ E.a:"a", E.b:"b" ];

    // Works
    enum { c=3, d=4 }
    auto works1 = [ "c":c , "d":d  ];
    auto works2 = [  c:"c",  d:"d" ];
}
---

Bug does not happen if "enum E" is moved out of main to module scope.

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

Reply via email to