https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119263
Bug ID: 119263 Summary: ICE: gimplify_expr (gimplify.cc:20209) triggered by __builtin_assoc_barrier with volatile struct Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: bic60176 at gmail dot com Target Milestone: --- Created attachment 60736 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60736&action=edit testcase Compiler Explorer: https://godbolt.org/z/7hhT5YKee Console: <source>: In function 'foo': <source>:6:10: internal compiler error: in gimplify_expr, at gimplify.cc:20209 6 | return __builtin_assoc_barrier(a); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ 0x25f3205 diagnostic_context::diagnostic_impl(rich_location*, diagnostic_metadata const*, diagnostic_option_id, char const*, __va_list_tag (*) [1], diagnostic_t) ???:0 0x260a226 internal_error(char const*, ...) ???:0 0x9e9434 fancy_abort(char const*, int, char const*) ???:0 0xded1ba gimplify_stmt(tree_node**, gimple**) ???:0 0xde9852 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) ???:0 0xded1ba gimplify_stmt(tree_node**, gimple**) ???:0 0xdeb5e2 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) ???:0 0xded1ba gimplify_stmt(tree_node**, gimple**) ???:0 0xdea6ab gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) ???:0 0xded1ba gimplify_stmt(tree_node**, gimple**) ???:0 0xdeaffc gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) ???:0 0xdf3536 gimplify_body(tree_node*, bool) ???:0 0xdf39fc gimplify_function_tree(tree_node*) ???:0 0xc06e87 cgraph_node::analyze() ???:0 0xc0a1b1 symbol_table::finalize_compilation_unit() ???: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. Compiler returned: 1