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

            Bug ID: 121236
           Summary: Problems during GIMPLE pass: ifcvt
           Product: gcc
           Version: 16.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dcb314 at hotmail dot com
  Target Milestone: ---

Created attachment 61960
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=61960&action=edit
C source code

For the attached C code,recent gcc does this:

foundBugs $ /home/dcb42/gcc/results.20250715.asan.ubsan/bin/gcc -c -w -O2
-march=znver3 bug1110.c
foundBugs $ /home/dcb42/gcc/results.20250717.asan.ubsan/bin/gcc -c -w -O2
-march=znver3 bug1110.c
during GIMPLE pass: ifcvt
runData/keep/in.1481.c: In function ‘main’:
runData/keep/in.1481.c:1132:5: internal compiler error: tree check: expected
class ‘type’, have ‘exceptional’ (error_mark) in useless_type_conversion_p, at
gimple-expr.cc:85
0x1ee4bbe ???

foundBugs $ /home/dcb42/gcc/results.20250715.asan.ubsan/bin/gcc -v 2>&1 | grep
exp
gcc version 16.0.0 20250715 (experimental) (178dc3367643bf8a) 
foundBugs $ /home/dcb42/gcc/results.20250717.asan.ubsan/bin/gcc -v 2>&1 | grep
exp
gcc version 16.0.0 20250717 (experimental) (803013b9322b044c) 
foundBugs $ 

I will have a go at reducing the code.

Reply via email to