Bug 11063 – __MODULE__ in mixin crash dmd

Status
RESOLVED
Resolution
DUPLICATE
Severity
regression
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
Linux
Creation time
2013-09-18T03:56:00Z
Last change time
2013-09-18T09:09:05Z
Assigned to
nobody
Creator
code.viator

Comments

Comment #0 by code.viator — 2013-09-18T03:56:41Z
file mixinmodulefail.d [code] import std.stdio; void main() { mixin( "writeln( __MODULE__ );" ); } [/code] $ dmd mixinmodulefail.d Segmentation fault (core dumped)
Comment #1 by code.viator — 2013-09-18T04:25:54Z
$ uname -a Linux lenovo 3.10.11-200.fc19.x86_64 #1 SMP Mon Sep 9 13:03:01 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux $ dmd -v DMD64 D Compiler v2.063.2
Comment #2 by safety0ff.bugz — 2013-09-18T05:53:30Z
__MODULE__ alone causes a segfault here: void main() { ( __MODULE__); }
Comment #3 by hsteoh — 2013-09-18T08:39:35Z
Works on DMD git HEAD (2f59d8656a6b97e0bb285d6b5bbd5c9d5f69b9ad). I'll add a test case to DMD to prevent future regression.
Comment #4 by hsteoh — 2013-09-18T09:02:40Z
Comment #5 by andrej.mitrovich — 2013-09-18T09:09:05Z
*** This issue has been marked as a duplicate of issue 10695 ***