[Issue 22737] New: Segnementation fault in CppMangleVisitor.getTiNamespace

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Feb 4 20:33:34 UTC 2022


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: nobody at puremagic.com
          Reporter: tim.dlang at t-online.de

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);
}

--


More information about the Digitalmars-d-bugs mailing list