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 ***