https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113083
Bug ID: 113083 Summary: [14 Regression][arm] ICE in fold_convert_loc, at fold-const.cc:2602 since r14-5979-g99d114c15523e0 Product: gcc Version: 14.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: mjires at suse dot cz CC: polacek at redhat dot com Target Milestone: --- Target: arm Compiling reduced testcase g++.dg/cpp0x/constexpr-98295.C results in ICE since r14-5979-g99d114c15523e0. $ cat constexpr-98295.C struct A { constexpr A(); }; void f() { A b; } constexpr A::A() {} $ arm-linux-gnueabi-g++ constexpr-98295.C -Os constexpr-98295.C: In constructor ‘constexpr A::A()’: constexpr-98295.C:7:19: internal compiler error: in fold_convert_loc, at fold-const.cc:2602 7 | constexpr A::A() {} | ^ 0x1517af9 fold_convert_loc(unsigned int, tree_node*, tree_node*) /home/mjires/git/GCC/master/gcc/fold-const.cc:2602 0x1613814 gimplify_modify_expr /home/mjires/git/GCC/master/gcc/gimplify.cc:6353 0x16471a1 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) /home/mjires/git/GCC/master/gcc/gimplify.cc:17640 0x1617f67 gimplify_stmt(tree_node**, gimple**) /home/mjires/git/GCC/master/gcc/gimplify.cc:7477 0x15ff631 gimplify_and_add(tree_node*, gimple**) /home/mjires/git/GCC/master/gcc/gimplify.cc:493 0x16045a5 gimplify_return_expr /home/mjires/git/GCC/master/gcc/gimplify.cc:1883 0x16482da gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) /home/mjires/git/GCC/master/gcc/gimplify.cc:17902 0x1617f67 gimplify_stmt(tree_node**, gimple**) /home/mjires/git/GCC/master/gcc/gimplify.cc:7477 0x1605a4d gimplify_statement_list /home/mjires/git/GCC/master/gcc/gimplify.cc:2222 0x1649002 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) /home/mjires/git/GCC/master/gcc/gimplify.cc:18085 0x1617f67 gimplify_stmt(tree_node**, gimple**) /home/mjires/git/GCC/master/gcc/gimplify.cc:7477 0x1603668 gimplify_bind_expr /home/mjires/git/GCC/master/gcc/gimplify.cc:1614 0x1647f13 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) /home/mjires/git/GCC/master/gcc/gimplify.cc:17841 0x1617f67 gimplify_stmt(tree_node**, gimple**) /home/mjires/git/GCC/master/gcc/gimplify.cc:7477 0x164bdb4 gimplify_body(tree_node*, bool) /home/mjires/git/GCC/master/gcc/gimplify.cc:18907 0x164c6a9 gimplify_function_tree(tree_node*) /home/mjires/git/GCC/master/gcc/gimplify.cc:19106 0x13a0cb1 cgraph_node::analyze() /home/mjires/git/GCC/master/gcc/cgraphunit.cc:685 0x13a2d6d analyze_functions /home/mjires/git/GCC/master/gcc/cgraphunit.cc:1248 0x13a62f3 symbol_table::finalize_compilation_unit() /home/mjires/git/GCC/master/gcc/cgraphunit.cc:2555 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. See <https://gcc.gnu.org/bugs/> for instructions. $ arm-linux-gnueabi-g++ -v Using built-in specs. COLLECT_GCC=arm-linux-gnueabi-g++ COLLECT_LTO_WRAPPER=/home/mjires/built/master/libexec/gcc/arm-linux-gnueabi/14.0.0/lto-wrapper Target: arm-linux-gnueabi Configured with: /home/mjires/git/GCC/master/configure --prefix=/home/mjires/built/master --target=arm-linux-gnueabi --disable-bootstrap --enable-languages=c,c++,fortran --disable-multilib --disable-libsanitizer --enable-checking Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 14.0.0 20231219 (experimental) (GCC)