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

          Issue ID: 24065
           Summary: __traits(getTargetInfo) causes a segfault when passed
                    a non value
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Keywords: ice
          Severity: minor
          Priority: P1
         Component: dmd
          Assignee: [email protected]
          Reporter: [email protected]

Each of the following examples causes the compiler to segfault:

pragma(msg, __traits(getTargetInfo, int));

void foo() {}
pragma(msg, __traits(getTargetInfo, foo));

enum e;
pragma(msg, __traits(getTargetInfo, e));

--

Reply via email to