www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 17812] New: crash when building JSON infor with static foreach

https://issues.dlang.org/show_bug.cgi?id=17812

          Issue ID: 17812
           Summary: crash when building JSON infor with static foreach
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Windows
            Status: NEW
          Severity: major
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: r.sagitario gmx.de

Any use of static foreach seems to crash when generating JSON info during
compilation, e.g.:

static foreach(enum i; 0..3)
    mixin("int a" ~ i.stringof ~ " = 1;");

build with "dmd -c -X test.d":

object.Error (0): Access Violation
----------------
0x00515D77

--
Sep 07