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

            Bug ID: 122365
           Summary: ice in vect_create_epilog_for_reduction, at
                    tree-vect-loop.cc:5610
           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 62598
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=62598&action=edit
gzipped C++ source code

For the attached C++ code with recent g++:

foundBugs $ ~/gcc/results/bin/gcc -c -w -O2  bug1129.cc
foundBugs $ ~/gcc/results/bin/gcc -c -w -O3  bug1129.cc
during GIMPLE pass: vect
/home/dcb42/rpmbuild/BUILD/dcm2niix-1.0.20220720-build/dcm2niix-1.0.20220720/console/nii_dicom.cpp:
In function ‘TDICOMdata nii_readParRec(char*, int, TDTI4D*, bool)’:
/home/dcb42/rpmbuild/BUILD/dcm2niix-1.0.20220720-build/dcm2niix-1.0.20220720/console/nii_dicom.cpp:1714:19:
internal compiler error: in vect_create_epilog_for_reduction, at
tree-vect-loop.cc:5610

foundBugs $ ~/gcc/results/bin/gcc -v
Using built-in specs.
COLLECT_GCC=/home/dcb42/gcc/results/bin/gcc
COLLECT_LTO_WRAPPER=/home/dcb42/gcc/results.20251021.asan.ubsan/libexec/gcc/x86_64-pc-linux-gnu/16.0.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: ../trunk/configure
--prefix=/home/dcb42/gcc/results.20251021.asan.ubsan --disable-multilib
--disable-bootstrap --with-build-config='bootstrap-asan bootstrap-ubsan'
--with-pkgversion=01c854c2a3b7d7a3 --with-isl
--enable-checking=df,extra,fold,rtl,yes --disable-doc
--enable-languages=c,c++,fortran
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 16.0.0 20251021 (experimental) (01c854c2a3b7d7a3) 
foundBugs $ 

The bug first seems to occur sometime between g:eb717a8f4ea9f5ee
and g:200b826af41d0dc0

Reply via email to