digitalmars.D.bugs - [Issue 20626] New: ICE when using typeof of unittest symbol without
- d-bugmail puremagic.com (24/24) Mar 02 2020 https://issues.dlang.org/show_bug.cgi?id=20626
https://issues.dlang.org/show_bug.cgi?id=20626 Issue ID: 20626 Summary: ICE when using typeof of unittest symbol without -unittest flag Product: D Version: D2 Hardware: x86 OS: Mac OS X Status: NEW Keywords: ice-on-invalid-code Severity: enhancement Priority: P1 Component: dmd Assignee: nobody puremagic.com Reporter: pro.mathias.lang gmail.com ``` unittest {} pragma(msg, typeof(__unittest_L1_C1)); ``` Compile with `dmd test.d` and you get a segv. Compile with `dmd -unittest test.d` and it works just fine. Tested with DMD v2.090.1 & madteer as of 2020-03-03. Found while working on https://github.com/dlang/dmd/pull/10834 --
Mar 02 2020