https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90650
Bug ID: 90650 Summary: ICE in fold_convert_loc, at fold-const.c:2552 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: --- With snapshot from 20190526 : $ cat z1.d class c { static f () { return 0; } } void g () { if (0 & [0] & c.f()) {} } $ gdc-10-20190526 -c z1.d z1.d: In function 'g': z1.d:10:15: internal compiler error: in fold_convert_loc, at fold-const.c:2552 10 | if (0 & [0] & c.f()) {} | ^ 0x8f27b3 fold_convert_loc(unsigned int, tree_node*, tree_node*) ../../gcc/fold-const.c:2552 0x8ebaf8 fold_binary_loc(unsigned int, tree_code, tree_node*, tree_node*, tree_node*) ../../gcc/fold-const.c:9437 0x8f06ca fold_build2_loc(unsigned int, tree_code, tree_node*, tree_node*, tree_node*) ../../gcc/fold-const.c:12327 0x76d7fb ExprVisitor::binary_op(tree_code, tree_node*, tree_node*, tree_node*) ../../gcc/d/expr.cc:165 0x76d7fb ExprVisitor::visit(BinExp*) ../../gcc/d/expr.cc:674 0x76ce3e build_expr(Expression*, bool) ../../gcc/d/expr.cc:3076 0x76ced9 build_expr_dtor(Expression*) ../../gcc/d/expr.cc:3099 0x77949f IRVisitor::visit(IfStatement*) ../../gcc/d/toir.cc:554 0x778a22 IRVisitor::build_stmt(Statement*) ../../gcc/d/toir.cc:258 0x778a22 IRVisitor::visit(CompoundStatement*) ../../gcc/d/toir.cc:1042 0x778561 IRVisitor::build_stmt(Statement*) ../../gcc/d/toir.cc:258 0x778561 build_function_body(FuncDeclaration*) ../../gcc/d/toir.cc:1447 0x76c0e4 DeclVisitor::visit(FuncDeclaration*) ../../gcc/d/decl.cc:1006 0x769026 build_decl_tree(Dsymbol*) ../../gcc/d/decl.cc:1047 0x7768b0 build_module_tree(Module*) ../../gcc/d/modules.cc:726 0x76b4ab DeclVisitor::visit(Module*) ../../gcc/d/decl.cc:147 0x769026 build_decl_tree(Dsymbol*) ../../gcc/d/decl.cc:1047 0x767214 d_parse_file() ../../gcc/d/d-lang.cc:1310