[Issue 18803] New: just "static if" in nested import crashes dmd

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Apr 27 15:07:48 UTC 2018


https://issues.dlang.org/show_bug.cgi?id=18803

          Issue ID: 18803
           Summary: just "static if" in nested import crashes dmd
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: minor
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: default_357-line at yahoo.de

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.

--


More information about the Digitalmars-d-bugs mailing list