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

          Issue ID: 22737
           Summary: Segnementation fault in
                    CppMangleVisitor.getTiNamespace
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: [email protected]
          Reporter: [email protected]

The following code results in a segmentation fault for DMD in
dmd.cppmangle.CppMangleVisitor.getTiNamespace:

alias Identity(T) = T;
extern(C++) Identity!T identity(T)(T val)
{
    return Identity!T(val);
}
void main()
{
    auto x = identity(5);
}

--

Reply via email to