Bug 20994 – -preview=dip1008 ok, adding -preview=dip1021 crashes compiler

Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Other
Creation time
2020-06-30T03:18:18Z
Last change time
2020-06-30T19:41:27Z
Assigned to
No Owner
Creator
Bruce Carneal

Comments

Comment #0 by bcarneal11 — 2020-06-30T03:18:18Z
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.
Comment #1 by bcarneal11 — 2020-06-30T19:41:27Z
*** This issue has been marked as a duplicate of issue 20996 ***