[Issue 20626] New: ICE when using typeof of unittest symbol without -unittest flag
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Mar 2 18:40:21 UTC 2020
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 at puremagic.com
Reporter: pro.mathias.lang at 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
--
More information about the Digitalmars-d-bugs
mailing list