https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89041

            Bug ID: 89041
           Summary: ICE in get_frame_for_symbol, at d/d-codegen.cc:2175
           Product: gcc
           Version: 9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: d
          Assignee: ibuclaw at gdcproject dot org
          Reporter: gs...@t-online.de
  Target Milestone: ---

This statement gives an ICE :


$ cat z1.d
enum a = delegate {};


$ gdc-9-20190120 -c z1.d
z1.d:1:10: internal compiler error: in get_frame_for_symbol, at
d/d-codegen.cc:2175
    1 | enum a = delegate {};
      |          ^
0x768a89 get_frame_for_symbol(Dsymbol*)
        ../../gcc/d/d-codegen.cc:2175
0x77a960 ExprVisitor::visit(FuncExp*)
        ../../gcc/d/expr.cc:2128
0x77a13e build_expr(Expression*, bool)
        ../../gcc/d/expr.cc:3055
0x77988f DeclVisitor::visit(VarDeclaration*)
        ../../gcc/d/decl.cc:606
0x7765b1 build_decl_tree(Dsymbol*)
        ../../gcc/d/decl.cc:949
0x782a30 build_module_tree(Module*)
        ../../gcc/d/modules.cc:717
0x7789eb DeclVisitor::visit(Module*)
        ../../gcc/d/decl.cc:142
0x7765b1 build_decl_tree(Dsymbol*)
        ../../gcc/d/decl.cc:949
0x773990 d_parse_file()
        ../../gcc/d/d-lang.cc:1278

Reply via email to