[Issue 9650] New: __traits(compiles) + mixin
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Mar 5 08:52:30 PST 2013
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: nobody at puremagic.com
ReportedBy: callumenator at gmail.com
--- Comment #0 from callumenator at gmail.com 2013-03-05 08:52:27 PST ---
DMD2.062:
http://forum.dlang.org/thread/vnnmmwhoyrdtbglqxqkz@forum.dlang.org#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: -------
More information about the Digitalmars-d-bugs
mailing list