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

            Bug ID: 128250
           Summary: ICE at O2: SSA corruption
           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 66009
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=66009&action=edit
testcase

Compiler Explorer: https://godbolt.org/z/hE3Gdo49a
Console:

Unable to coalesce ssa_names 6 and 18 which are marked as MUST COALESCE.
d_6(ab) and  d_18(ab)
during RTL pass: expand
<source>: In function 'foo':
<source>:6:6: internal compiler error: SSA corruption
    6 | void foo (struct C *x, int *z, int e)
      |      ^~~
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
0x13d9484 coalesce_ssa_name(_var_map*)
        ???:0
0x135d7c4 rewrite_out_of_ssa(ssaexpand*)
        ???: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