Bug 18803 – just "static if" in nested import crashes dmd
Status
RESOLVED
Resolution
FIXED
Severity
minor
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2018-04-27T15:07:48Z
Last change time
2018-04-30T19:34:57Z
Assigned to
No Owner
Creator
FeepingCreature
Comments
Comment #0 by default_357-line — 2018-04-27T15:07:48Z
Repro:
a.d:
void main() { import b; }
b.d:
static if
Result:
DMD crashes.
This happens because StaticIfCondition is called with a null exp if parsing fails, but it checks for ErrorExp. PR in a moment.
Comment #1 by github-bugzilla — 2018-04-30T19:34:56Z