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

            Bug ID: 122370
           Summary: [16 regression] ICE when building qtshadertools-6.10.0
           Product: gcc
           Version: 16.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          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 62599
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=62599&action=edit
spirv_glsl.cpp.ii.xz

```
$ g++ -c spirv_glsl.cpp.ii -O2 -march=x86-64-v4
/var/tmp/portage/dev-qt/qtshadertools-6.10.0/work/qtshadertools-everywhere-src-6.10.0/src/3rdparty/SPIRV-Cross/spirv_glsl.cpp:
In member function ‘virtual void
spirv_cross::CompilerGLSL::emit_instruction(const spirv_cross::Instruction&)’:
/var/tmp/portage/dev-qt/qtshadertools-6.10.0/work/qtshadertools-everywhere-src-6.10.0/src/3rdparty/SPIRV-Cross/spirv_glsl.cpp:12137:6:
error: conversion of register to a different size in ‘view_convert_expr’
12137 | void CompilerGLSL::emit_instruction(const Instruction &instruction)
      |      ^~~~~~~~~~~~
VIEW_CONVERT_EXPR<vector(16) <signed-boolean:1>>(_7257);

_7256 = VIEW_CONVERT_EXPR<vector(16) <signed-boolean:1>>(_7257);
/var/tmp/portage/dev-qt/qtshadertools-6.10.0/work/qtshadertools-everywhere-src-6.10.0/src/3rdparty/SPIRV-Cross/spirv_glsl.cpp:12137:6:
error: conversion of register to a different size in ‘view_convert_expr’
VIEW_CONVERT_EXPR<vector(16) unsigned char>(_7256);

_7247 = VIEW_CONVERT_EXPR<vector(16) unsigned char>(_7256);
during GIMPLE pass: vect
/var/tmp/portage/dev-qt/qtshadertools-6.10.0/work/qtshadertools-everywhere-src-6.10.0/src/3rdparty/SPIRV-Cross/spirv_glsl.cpp:12137:6:
internal compiler error: verify_gimple failed
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
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-languages=c,c++,d,fortran,ada,jit --enable-obsolete
--enable-secureplt --disable-werror --with-system-zlib --enable-nls
--without-included-gettext --disable-libunwind-exceptions
--enable-checking=yes,extra,rtl --with-bugurl=https://bugs.gentoo.org/
--with-pkgversion='Gentoo Hardened 16.0.9999 p, commit
f7ce4f0367ea98c32b658547d6206523358c3b19' --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 --disable-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 --enable-host-shared
--enable-libgdiagnostics --enable-linker-build-id
--with-build-config='bootstrap-O3 bootstrap-cet'
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 16.0.0 20251021 (experimental)
99b548951fe68ffe999a96e1123faec6bfda5fa6 (Gentoo Hardened 16.0.9999 p, commit
f7ce4f0367ea98c32b658547d6206523358c3b19)
```

Reply via email to