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

           Summary: __traits(compiles) + mixin
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: regression
          Priority: P2
         Component: DMD
        AssignedTo: [email protected]
        ReportedBy: [email protected]


--- Comment #0 from [email protected] 2013-03-05 08:52:27 PST ---
DMD2.062:

http://forum.dlang.org/thread/[email protected]#post-tdojcnsrtkygjbhwegph:40forum.dlang.org

import std.conv;

void main()
{
    enum s = "`1`.to!int;";
    enum c = __traits(compiles, mixin("{auto a = new "~s~";}")); // line 1
    mixin("auto a = "~s~";");  // line 2
}

Long errors about instantiating std.conv.to!(int).to!(string). Swap lines 1 and
2 and compilation succeeds. This worked in 2.061. Possibly related to issue
9017.

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

Reply via email to