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
Comment #2 by andrej.mitrovich — 2013-07-22T06:11:59Z
P.S. you may also run into Issue 10339, that one has a pull as well.
Comment #3 by github-bugzilla — 2013-07-22T17:38:14Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/48788c36b8726b50af2c2da8ff8d916e957056ac Fixes Issue 10695 - ICE when using __MODULE__ within mixin string. https://github.com/D-Programming-Language/dmd/commit/3f7c3297bba6d75c2d1e49850656e66484d7b82a Merge pull request #2372 from AndrejMitrovic/Fix10695 Issue 10695 - ICE when using __MODULE__ within a mixin string.
Comment #4 by k.hara.pg — 2013-07-29T19:30:32Z
*** Issue 10339 has been marked as a duplicate of this issue. ***
Comment #5 by mk — 2013-08-03T03:06:57Z
*** Issue 10743 has been marked as a duplicate of this issue. ***
Comment #6 by andrej.mitrovich — 2013-09-18T09:09:05Z
*** Issue 11063 has been marked as a duplicate of this issue. ***