[Issue 20994] New: -preview=dip1008 ok, adding -preview=dip1021 crashes compiler

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Jun 30 03:18:18 UTC 2020


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

          Issue ID: 20994
           Summary: -preview=dip1008 ok, adding -preview=dip1021 crashes
                    compiler
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Other
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: bcarneal11 at gmail.com

import std.exception;

void main() @nogc {
  throw new Exception("throws fine when 1021 is not enabled");
}

The above compiles and runs as expected with -preview=dip1008.  It seg faults
during compilation if you add -preview=dip1021 to the command line.

Failure as described was seen for all relevant versions available via dlang.io
through the latest, v2.092.1.

--


More information about the Digitalmars-d-bugs mailing list