[Issue 17812] New: crash when building JSON infor with static foreach

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Thu Sep 7 07:43:08 UTC 2017


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 at puremagic.com
          Reporter: r.sagitario at 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

--


More information about the Digitalmars-d-bugs mailing list