https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117512
Bug ID: 117512 Summary: ICE on x86_64-linux-gnu: in cp_gimplify_expr, at cp/cp-gimplify.cc:911 with aligned Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: iamanonymous.cs at gmail dot com Target Milestone: --- Compiler Explorer: https://godbolt.org/z/hGT8v9znb ******************************************************************************* gcc version: Using built-in specs. COLLECT_GCC=/home/software/gcc-trunk/bin/gcc COLLECT_LTO_WRAPPER=/home/software/gcc-trunk/libexec/gcc/x86_64-pc-linux-gnu/15.0.0/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: ../gcc/configure --disable-bootstrap --enable-checking=yes --prefix=/home/software/gcc-trunk --enable-sanitizers --enable-languages=c,c++ --disable-werror --enable-multilib --enable-coverage Thread model: posix Supported LTO compression algorithms: zlib gcc version 15.0.0 20241107 (experimental) (GCC) ******************************************************************************* Program: $ cat mutant.C struct a { __attribute__((aligned)) int b; ~a(); }; a c(int); a d = c(0) = d; ******************************************************************************* Command Lines: $ gcc mutant.C mutant.C: In function 'void __static_initialization_and_destruction_0()': mutant.C:6:8: internal compiler error: in cp_gimplify_expr, at cp/cp-gimplify.cc:911 6 | a d = c(0) = d; | ~^~~ 0x5cdf4f4 internal_error(char const*, ...) ../../gcc/gcc/diagnostic-global-context.cc:518 0x5c807b6 fancy_abort(char const*, int, char const*) ../../gcc/gcc/diagnostic.cc:1696 0xff0605 cp_gimplify_expr(tree_node**, gimple**, gimple**) ../../gcc/gcc/cp/cp-gimplify.cc:911 0x1ee3097 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) ../../gcc/gcc/gimplify.cc:18094 0x1e8b889 gimplify_addr_expr ../../gcc/gcc/gimplify.cc:7034 0x1ee3cf3 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) ../../gcc/gcc/gimplify.cc:18235 0x1ee4b1c gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) ../../gcc/gcc/gimplify.cc:18347 0x1e88775 gimplify_modify_expr ../../gcc/gcc/gimplify.cc:6603 0x1ee376c gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) ../../gcc/gcc/gimplify.cc:18188 0x1e900a4 gimplify_stmt(tree_node**, gimple**) ../../gcc/gcc/gimplify.cc:7709 0x1e8ae9d gimplify_compound_expr ../../gcc/gcc/gimplify.cc:6885 0x1e86036 gimplify_modify_expr_rhs ../../gcc/gcc/gimplify.cc:6139 0x1e883e8 gimplify_modify_expr ../../gcc/gcc/gimplify.cc:6542 0x1ee376c gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) ../../gcc/gcc/gimplify.cc:18188 0x1e900a4 gimplify_stmt(tree_node**, gimple**) ../../gcc/gcc/gimplify.cc:7709 0x1e8ed8e gimplify_cleanup_point_expr ../../gcc/gcc/gimplify.cc:7447 0x1ee65eb gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) ../../gcc/gcc/gimplify.cc:18587 0x1e900a4 gimplify_stmt(tree_node**, gimple**) ../../gcc/gcc/gimplify.cc:7709 0x1e6e98d gimplify_statement_list ../../gcc/gcc/gimplify.cc:2255 0x1ee6be0 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) ../../gcc/gcc/gimplify.cc:18639 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.