www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 20035] New: [ICE] Segmentation fault in

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

          Issue ID: 20035
           Summary: [ICE] Segmentation fault in
                    ExpressionPrettyPrintVisitor::visit(IntegerExp*) at
                    dmd/hdrgen.d:1775
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: critical
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: ibuclaw gdcproject.org

// dmd -vcg-ast
enum __c_wchar_t : dchar;
alias wchar_t = __c_wchar_t;

T[] values(T)()
{
    T[] values;
    values ~= T();
    return values;
}

void main()
{
    values!wchar_t;
}

--
Jul 08 2019