Bug 10743 – mixin+static assert+__MODULE__=ICE

Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Windows
Creation time
2013-08-01T23:29:00Z
Last change time
2013-08-03T03:06:57Z
Assigned to
nobody
Creator
2krnk

Comments

Comment #0 by 2krnk — 2013-08-01T23:29:01Z
with DMD 2.063.2, 32bit: // demo.d module demo; // compiles ok: static assert( __MODULE__ == "demo" ); mixin( `static assert( __traits(compiles,demo) );` ); mixin( `static assert( __FILE__ == "demo.d" );` ); // crashes dmd: mixin( `static assert( __MODULE__ == "demo" );` ); void main(){}
Comment #1 by mk — 2013-08-03T03:06:57Z
*** This issue has been marked as a duplicate of issue 10695 ***