https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90560
Bug ID: 90560 Summary: ICE in visit, at d/dmd/dcast.c:1872 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: --- Another variation with negative length : $ cat z1.d void[] f = cast(void[-1]) "a"; $ gdc-10-20190519 -c z1.d d21: internal compiler error: Segmentation fault 0xb6ed9f crash_signal ../../gcc/toplev.c:326 0x63b663 visit ../../gcc/d/dmd/dcast.c:1872 0x64051a castTo(Expression*, Scope*, Type*) ../../gcc/d/dmd/dcast.c:2370 0x6aff10 Expression::castTo(Scope*, Type*) ../../gcc/d/dmd/expression.h:173 0x6aff10 ExpressionSemanticVisitor::visit(CastExp*) ../../gcc/d/dmd/expressionsem.c:4243 0x6a8495 semantic(Expression*, Scope*) ../../gcc/d/dmd/expressionsem.c:8158 0x6d893d InitializerSemanticVisitor::visit(ExpInitializer*) ../../gcc/d/dmd/initsem.c:348 0x6d85db semantic(Initializer*, Scope*, Type*, NeedInterpret) ../../gcc/d/dmd/initsem.c:520 0x64c123 VarDeclaration::semantic2(Scope*) ../../gcc/d/dmd/declaration.c:1619 0x66b2ef Module::semantic2(Scope*) ../../gcc/d/dmd/dmodule.c:782 0x76660d d_parse_file() ../../gcc/d/d-lang.cc:1185