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

            Bug ID: 125599
           Summary: ice during GIMPLE pass: backprop with -O3
           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 64623
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=64623&action=edit
gzipped C++ source code

For the attached gzipped C++ source code, recent gcc trunk
does this:

foundBugs $ ~/gcc/results/bin/g++ -c -w -O3 bug1212.cc
during GIMPLE pass: backprop
tetgen.cxx: In member function ‘bool tetgenmesh::orthosphere(double*, double*,
double*, double*, double, double, double, double, double*, double*)’:
tetgen.cxx:6734:6: internal compiler error: Segmentation fault
0x22c4907 internal_error
       
/home/dcb42/gcc/working/gcc/../../trunk/gcc/diagnostic-global-context.cc:787
0xf7ae89 ???
        /home/dcb42/gcc/working/gcc/../../trunk/gcc/toplev.cc:325
0xb07a70 gimple_bb
        ../../trunk/gcc/gimple.h:1919
0xb07a70 gsi_for_stmt
        /home/dcb42/gcc/working/gcc/../../trunk/gcc/gimple-iterator.cc:628

The compiler is 

foundBugs $ ~/gcc/results/bin/g++ -v
Using built-in specs.
COLLECT_GCC=/home/dcb42/gcc/results/bin/g++
COLLECT_LTO_WRAPPER=/home/dcb42/gcc/results.20260604.ubsan/libexec/gcc/x86_64-pc-linux-gnu/17.0.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: ../trunk/configure
--prefix=/home/dcb42/gcc/results.20260604.ubsan --disable-bootstrap
--disable-doc --disable-multilib --with-build-config=bootstrap-ubsan
--with-pkgversion=7ec15f8a0b357e33 --enable-checking=yes
--enable-languages=c,c++,fortran
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 17.0.0 20260602 (experimental) (7ec15f8a0b357e33) 
foundBugs $ 

The problem first seems to occur sometime between g:42f9bf2e3c56ae67
and g:7ec15f8a0b357e33.

I will have a go at a reduction.

Reply via email to