www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 20919] New: DMD crash when '__traits' prints error involving

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

          Issue ID: 20919
           Summary: DMD crash when '__traits' prints error involving a
                    Parameter
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: boris2.9 gmail.com

test:
----------------------------
void foo(int a){}

static if (is(typeof(foo) params == __parameters))
{
    __traits(getAttributes, params) a;
}
----------------------------

Patch ready.

--
Jun 09