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: [email protected]
Reporter: [email protected]
```
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
--