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

            Bug ID: 90863
           Summary: ICE in StatementSemanticVisitor::visit, at
                    d/dmd/statementsem.c:1992
           Product: gcc
           Version: 10.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: d
          Assignee: ibuclaw at gdcproject dot org
          Reporter: gs...@t-online.de
  Target Milestone: ---

Cross checked with dmd/ldc :

$ cat z1.d
void f()
{ switch(1) static assert(1); }


$ gdc-10-20190609 -c z1.d
d21: internal compiler error: Segmentation fault
0xb7174f crash_signal
        ../../gcc/toplev.c:326
0x72c0d7 StatementSemanticVisitor::visit(SwitchStatement*)
        ../../gcc/d/dmd/statementsem.c:1992
0x7294ca semantic(Statement*, Scope*)
        ../../gcc/d/dmd/statementsem.c:3498
0x7294ca StatementSemanticVisitor::visit(CompoundStatement*)
        ../../gcc/d/dmd/statementsem.c:139
0x7250c5 semantic(Statement*, Scope*)
        ../../gcc/d/dmd/statementsem.c:3498
0x6ca16f FuncDeclaration::semantic3(Scope*)
        ../../gcc/d/dmd/func.c:1696
0x66cecf Module::semantic3(Scope*)
        ../../gcc/d/dmd/dmodule.c:814
0x7672e5 d_parse_file()
        ../../gcc/d/d-lang.cc:1201

Reply via email to