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

            Bug ID: 122138
           Summary: [16 regression] ICE when building lapack-3.12.1
           Product: gcc
           Version: 16.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: sjames at gcc dot gnu.org
  Target Milestone: ---

Created attachment 62487
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=62487&action=edit
slatmr.f-pp.f.xz

```
$ gfortran -c
./TESTING/MATGEN/CMakeFiles/tmglib_64_obj.dir/tmglib_64_obj/slatmr.f-pp.f -O3
-fdefault-integer-8
/var/tmp/portage/sci-libs/lapack-3.12.1-r2/work/lapack-3.12.1_build/TESTING/MATGEN/tmglib_64_obj/slatmr.f:468:7:

  468 |       SUBROUTINE SLATMR( M, N, DIST, ISEED, SYM, D, MODE, COND, DMAX,
      |       ^~~~~~~~~~~~~~~~~~~~
Error: incompatible types in ‘PHI’ argument 0
vector(2) unsigned long

vector(4) <signed-boolean:32>

vect_dzero_1386.458_1887 = PHI <mask__1210.459_1886(437), { 0, 0 }(511)>
/var/tmp/portage/sci-libs/lapack-3.12.1-r2/work/lapack-3.12.1_build/TESTING/MATGEN/tmglib_64_obj/slatmr.f:468:7:
Error: type mismatch in binary expression
vector(4) <signed-boolean:32>

vector(2) unsigned long

vector(4) <signed-boolean:32>

mask__1210.459_1886 = vect_dzero_1386.458_1887 | mask__1248.456_1889;
during GIMPLE pass: vect
/var/tmp/portage/sci-libs/lapack-3.12.1-r2/work/lapack-3.12.1_build/TESTING/MATGEN/tmglib_64_obj/slatmr.f:468:7:
internal compiler error: verify_gimple failed
0x55e320f118c1 internal_error(char const*, ...)
       
/usr/src/debug/sys-devel/gcc-16.0.9999/gcc-16.0.9999/gcc/diagnostic-global-context.cc:786
0x55e31f8e2f2b verify_gimple_in_cfg(function*, bool, bool) [clone .constprop.0]
[clone .isra.0]
       
/usr/src/debug/sys-devel/gcc-16.0.9999/gcc-16.0.9999/gcc/tree-cfg.cc:5603
0x55e32112b7b8 execute_function_todo
        /usr/src/debug/sys-devel/gcc-16.0.9999/gcc-16.0.9999/gcc/passes.cc:2097
0x55e32103711e do_per_function
        /usr/src/debug/sys-devel/gcc-16.0.9999/gcc-16.0.9999/gcc/passes.cc:1696
0x55e32103711e execute_todo
        /usr/src/debug/sys-devel/gcc-16.0.9999/gcc-16.0.9999/gcc/passes.cc:2149
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <https://bugs.gentoo.org/> for instructions.
```

---

```
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-pc-linux-gnu/16/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-pc-linux-gnu
Configured with:
/var/tmp/portage/sys-devel/gcc-16.0.9999/work/gcc-16.0.9999/configure
--host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --prefix=/usr
--bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/16
--includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/16/include
--datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/16
--mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/16/man
--infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/16/info
--with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/16/include/g++-v16
--disable-silent-rules --disable-dependency-tracking
--with-python-dir=/share/gcc-data/x86_64-pc-linux-gnu/16/python
--enable-libphobos --enable-objc-gc
--enable-languages=c,c++,d,objc,obj-c++,fortran,ada,rust --enable-obsolete
--enable-secureplt --disable-werror --with-system-zlib --enable-nls
--without-included-gettext --disable-libunwind-exceptions
--enable-checking=yes,extra,rtl,df --with-bugurl=https://bugs.gentoo.org/
--with-pkgversion='Gentoo 16.0.9999 p, commit
cd1c12abe6c8b8b1e0509654bf9288a3477e6f34' --with-gcc-major-version-only
--enable-libstdcxx-time --enable-lto --disable-libstdcxx-pch --enable-shared
--enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu
--enable-multilib --with-multilib-list=m32,m64 --disable-fixed-point
--enable-targets=all --enable-offload-defaulted
--enable-offload-targets=nvptx-none --enable-libgomp --disable-libssp
--enable-libada --enable-cet --disable-systemtap --enable-valgrind-annotations
--disable-vtable-verify --disable-libvtv --with-zstd --without-isl
--enable-default-pie --enable-host-pie --enable-host-bind-now
--enable-default-ssp --disable-fixincludes
--with-gxx-libcxx-include-dir=/usr/include/c++/v1
--with-build-config='bootstrap-lto bootstrap-cet'
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 16.0.0 20251002 (experimental)
264a575765e0985fdc8a00b16c1d5bb4a46ed4db (Gentoo 16.0.9999 p, commit
cd1c12abe6c8b8b1e0509654bf9288a3477e6f34)
```

Reply via email to