https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121102
Bug ID: 121102 Summary: ICE at O2: in make_ssa_name_fn, at tree-ssanames.cc:355 Product: gcc Version: 15.1.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 61873 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=61873&action=edit testcase Compiler explorer: https://godbolt.org/z/fqb8bsT6x console: <source>: In function 'bar': <source>:8:7: warning: old-style function definition [-Wold-style-definition] 8 | int bar(c) int c[1][va_arg(a, int)]; | ^~~ during GIMPLE pass: einline <source>: In function 'foo': <source>:10:11: internal compiler error: in make_ssa_name_fn, at tree-ssanames.cc:355 10 | int r = bar(b); | ^~~~~~ 0x253d385 diagnostic_context::diagnostic_impl(rich_location*, diagnostic_metadata const*, diagnostic_option_id, char const*, __va_list_tag (*) [1], diagnostic_t) ???:0 0x255f066 internal_error(char const*, ...) ???:0 0xa011e4 fancy_abort(char const*, int, char const*) ???:0 0x122b074 copy_tree_body_r(tree_node**, int*, void*) ???:0 0x152b46c walk_tree_1(tree_node**, tree_node* (*)(tree_node**, int*, void*), void*, hash_set<tree_node*, false, default_hash_traits<tree_node*> >*, tree_node* (*)(tree_node**, int*, tree_node* (*)(tree_node**, int*, void*), void*, hash_set<tree_node*, false, default_hash_traits<tree_node*> >*)) ???:0 0x152b668 walk_tree_1(tree_node**, tree_node* (*)(tree_node**, int*, void*), void*, hash_set<tree_node*, false, default_hash_traits<tree_node*> >*, tree_node* (*)(tree_node**, int*, tree_node* (*)(tree_node**, int*, void*), void*, hash_set<tree_node*, false, default_hash_traits<tree_node*> >*)) ???:0 0x1228172 remap_type(tree_node*, copy_body_data*) ???:0 0x1228172 remap_type(tree_node*, copy_body_data*) ???:0 0x1237091 optimize_inline_calls(tree_node*) ???:0 0x23b1f91 early_inliner(function*) ???: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