https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90761
Bug ID: 90761 Summary: ICE in visit, at d/dmd/dcast.c:883 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: --- $ cat z1.d immutable b = new a; class a { int c = &d; } $ gdc-10-20190602 -c z1.d d21: internal compiler error: Segmentation fault 0xb7265f crash_signal ../../gcc/toplev.c:326 0x63eb6c visit ../../gcc/d/dmd/dcast.c:883 0x63f705 implicitConvTo(Expression*, Type*) ../../gcc/d/dmd/dcast.c:1308 0x63f705 Expression::implicitConvTo(Type*) ../../gcc/d/dmd/expression.h:169 0x63f705 implicitMod ../../gcc/d/dmd/dcast.c:245 0x63f705 convertible ../../gcc/d/dmd/dcast.c:1215 0x63fcb5 visit ../../gcc/d/dmd/dcast.c:1232 0x641074 implicitConvTo(Expression*, Type*) ../../gcc/d/dmd/dcast.c:1308 0x6d9c2d Expression::implicitConvTo(Type*) ../../gcc/d/dmd/expression.h:169 0x6d9c2d InitializerSemanticVisitor::visit(ExpInitializer*) ../../gcc/d/dmd/initsem.c:363 0x6d96eb semantic(Initializer*, Scope*, Type*, NeedInterpret) ../../gcc/d/dmd/initsem.c:520 0x64d233 VarDeclaration::semantic2(Scope*) ../../gcc/d/dmd/declaration.c:1619 0x66c3ff Module::semantic2(Scope*) ../../gcc/d/dmd/dmodule.c:782 0x76771d d_parse_file() ../../gcc/d/d-lang.cc:1185