March 03, 2023
https://issues.dlang.org/show_bug.cgi?id=23758

          Issue ID: 23758
           Summary: [REG 2.103] Segfault accesses NewExp::argprefix from
                    C++
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: regression
          Priority: P1
         Component: dmd
          Assignee: nobody@puremagic.com
          Reporter: ibuclaw@gdcproject.org

/home/ibuclaw/src/gcc/gcc/gcc/testsuite/gdc.dg/pr89017.d:38:16: internal
compiler error: Segmentation fault
0x1192e56 crash_signal
        ../../gcc/toplev.cc:314
0x7f5db16b1cef ???
        ./signal/../sysdeps/unix/sysv/linux/x86_64/libc_sigaction.c:0
0xc3a498 build_expr(Expression*, bool, bool)
        ../../gcc/d/expr.cc:3069
0xc4080f ExprVisitor::visit(NewExp*)
        ../../gcc/d/expr.cc:2491
0xc3a49a build_expr(Expression*, bool, bool)
        ../../gcc/d/expr.cc:3069
0xc3a617 build_return_dtor(Expression*, Type*, TypeFunction*)
        ../../gcc/d/expr.cc:3109
0xc4e8fa IRVisitor::visit(ReturnStatement*)
        ../../gcc/d/toir.cc:1064
0xc4b059 IRVisitor::build_stmt(Statement*)
        ../../gcc/d/toir.cc:274
0xc4b059 IRVisitor::visit(CompoundStatement*)
        ../../gcc/d/toir.cc:1092
0xc4b059 IRVisitor::visit(CompoundStatement*)
        ../../gcc/d/toir.cc:1082
0xc4b059 IRVisitor::build_stmt(Statement*)
        ../../gcc/d/toir.cc:274
0xc4b059 IRVisitor::visit(CompoundStatement*)
        ../../gcc/d/toir.cc:1092
0xc4b059 IRVisitor::visit(CompoundStatement*)
        ../../gcc/d/toir.cc:1082
0xc4a4a6 IRVisitor::build_stmt(Statement*)
        ../../gcc/d/toir.cc:274
0xc4a4a6 build_function_body(FuncDeclaration*)
        ../../gcc/d/toir.cc:1504
0xc39576 DeclVisitor::visit(FuncDeclaration*)
        ../../gcc/d/decl.cc:989
0xc37e64 DeclVisitor::build_dsymbol(Dsymbol*)
        ../../gcc/d/decl.cc:147
0xc37e64 DeclVisitor::visit(TemplateInstance*)
        ../../gcc/d/decl.cc:350
0xc37e64 DeclVisitor::visit(TemplateInstance*)
        ../../gcc/d/decl.cc:341
0xc325dd DeclVisitor::build_dsymbol(Dsymbol*)
        ../../gcc/d/decl.cc:147

--