https://gcc.gnu.org/bugzilla/show_bug.cgi?id=128255

            Bug ID: 128255
           Summary: ICE at O2: in make_ssa_name_fn, at
                    tree-ssanames.cc:355
           Product: gcc
           Version: 17.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 66014
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=66014&action=edit
testcase

Compiler Explorer: https://godbolt.org/z/r9M9he9aT
Console: 
<source>: In function 'bar':
<source>:9:7: warning: old-style function definition [-Wold-style-definition]
    9 |   int bar (c)
      |       ^~~
during GIMPLE pass: einline
<source>: In function 'foo':
<source>:14:11: internal compiler error: in make_ssa_name_fn, at
tree-ssanames.cc:355
   14 |   int r = bar (b);
      |           ^~~~~~~
0x2912368 diagnostics::context::diagnostic_impl(rich_location*,
diagnostics::metadata const*, diagnostics::option_id, char const*,
__va_list_tag (*) [1], diagnostics::kind)
        ???:0
0x2906fab internal_error(char const*, ...)
        ???:0
0xa9f008 fancy_abort(char const*, int, char const*)
        ???:0
0x1316f24 copy_tree_body_r(tree_node**, int*, void*)
        ???:0
0x163c843 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
0x163ca95 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
0x1314012 remap_type(tree_node*, copy_body_data*)
        ???:0
0x1314012 remap_type(tree_node*, copy_body_data*)
        ???:0
0x1322fd1 optimize_inline_calls(tree_node*)
        ???:0
0x2775da1 early_inliner(function*)
        ???:0
/cefs/7f/7fa6d45b591391d387e52988_gcc-trunk-20261028/bin/../libexec/gcc/x86_64-linux-gnu/17.0.0/cc1
-quiet -imultiarch x86_64-linux-gnu -iprefix
/cefs/7f/7fa6d45b591391d387e52988_gcc-trunk-20261028/bin/../lib/gcc/x86_64-linux-gnu/17.0.0/
<source> -quiet -dumpdir /app/ -dumpbase output.c -dumpbase-ext .c -masm=intel
-mtune=generic -march=x86-64 -g -O2 -fdiagnostics-color=always -fno-verbose-asm
-o /app/output.s
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

Reply via email to