https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111912
Bug ID: 111912 Summary: GCC: 14: internal compile error when apply __transaction_atomic on logical or expr Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: 141242068 at smail dot nju.edu.cn Target Milestone: --- When compile this small program: ``` int a; int f() { return __transaction_atomic (a || 1); } ``` GCC crashes, (verification link: https://gcc.godbolt.org/z/8onMYzqcv) The full stack dump: ``` <source>: In function 'f': <source>:2:40: internal compiler error: in gimplify_expr, at gimplify.cc:17510 2 | int f() { return __transaction_atomic (a || 1); } | ^ 0x231f49e internal_error(char const*, ...) ???:0 0xa00958 fancy_abort(char const*, int, char const*) ???:0 0xdbb3dc gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) ???:0 0xdbbf48 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) ???:0 0xdbec8a gimplify_stmt(tree_node**, gimple**) ???:0 0xdbcc33 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) ???:0 0xdbec8a gimplify_stmt(tree_node**, gimple**) ???:0 0xdbbf48 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) ???:0 0xdbec8a gimplify_stmt(tree_node**, gimple**) ???:0 0xdbbf48 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) ???:0 0xdbb78d gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) ???:0 0xdbec8a gimplify_stmt(tree_node**, gimple**) ???:0 0xdbbcdf gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) ???:0 0xdbec8a gimplify_stmt(tree_node**, gimple**) ???:0 0xdbdddb gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) ???:0 0xdbb78d gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) ???:0 0xdbec8a gimplify_stmt(tree_node**, gimple**) ???:0 0xdbc9b7 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) ???:0 0xdbec8a gimplify_stmt(tree_node**, gimple**) ???:0 0xdbbcdf gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) ???:0 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. ```