Bug 10695 – __MODULE__ in string mixin crashes compiler
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-07-22T03:53:00Z
Last change time
2013-09-18T09:09:05Z
Keywords
ice, pull
Assigned to
andrej.mitrovich
Creator
johannespfau
Comments
Comment #0 by johannespfau — 2013-07-22T03:53:49Z
Test case:
--------------------
module a;
void main()
{
//string mod = __MODULE__; // <--This is working
mixin("string mod = __MODULE__;");
}
--------------------
Tested with dmd 2.063.2 and 2.064 git.
Comment #1 by andrej.mitrovich — 2013-07-22T06:11:02Z