https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116892
Bug ID: 116892 Summary: ICE when building pspp-1.6.2 (error: type variant differs by TYPE_PACKED, internal compiler error: ‘verify_type’ failed) Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: sjames at gcc dot gnu.org Target Milestone: --- Originally reported downstream in Gentoo at https://bugs.gentoo.org/940485. ``` # gcc -c ./src/language/lexer/.libs/value-parser.i -flto src/language/lexer/value-parser.c:149:1: error: type variant differs by TYPE_PACKED 149 | } | ^ <enumeral_type 0x74d4165ee888 fmt_type type <integer_type 0x74d416423348 unsigned char public unsigned QI size <integer_cst 0x74d416425048 constant 8> unit-size <integer_cst 0x74d416425060 constant 1> align:8 warn_if_not_align:0 symtab:0 alias-set 0 canonical-type 0x74d416423348 precision:8 min <integer_cst 0x74d416425078 0> max <integer_cst 0x74d416425018 255> pointer_to_this <pointer_type 0x74d4160677e0>> unsigned packed QI size <integer_cst 0x74d416425048 8> unit-size <integer_cst 0x74d416425060 1> align:8 warn_if_not_align:0 symtab:0 alias-set -1 canonical-type 0x74d416423348 attributes <tree_list 0x74d416173000 purpose <identifier_node 0x74d4161688c0 packed>> precision:8 min <integer_cst 0x74d416425078 0> max <integer_cst 0x74d416425018 255> pointer_to_this <pointer_type 0x74d4161795e8>> <enumeral_type 0x74d4165eeb28 fmt_type type <integer_type 0x74d416423348 unsigned char public unsigned QI size <integer_cst 0x74d416425048 constant 8> unit-size <integer_cst 0x74d416425060 constant 1> align:8 warn_if_not_align:0 symtab:0 alias-set 0 canonical-type 0x74d416423348 precision:8 min <integer_cst 0x74d416425078 0> max <integer_cst 0x74d416425018 255> pointer_to_this <pointer_type 0x74d4160677e0>> readonly unsigned QI size <integer_cst 0x74d416425048 8> unit-size <integer_cst 0x74d416425060 1> align:8 warn_if_not_align:0 symtab:0 alias-set -1 canonical-type 0x74d41616a3f0 attributes <tree_list 0x74d416173000 purpose <identifier_node 0x74d4161688c0 packed>> precision:8 min <integer_cst 0x74d416425078 0> max <integer_cst 0x74d416425018 255> pointer_to_this <pointer_type 0x74d4165eebd0>> during IPA pass: *free_lang_data src/language/lexer/value-parser.c:149:1: internal compiler error: ‘verify_type’ failed 0x5f1875575e06 internal_error(char const*, ...) /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/diagnostic-global-context.cc:517 0x5f1873dd135a verify_type(tree_node const*) /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/tree.cc:14466 0x5f1875f9144b free_lang_data /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/ipa-free-lang-data.cc:1134 0x5f1875f9144b execute /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/ipa-free-lang-data.cc:1176 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/15/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: /var/tmp/portage/sys-devel/gcc-15.0.9999/work/gcc-15.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/15 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/15/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/15 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/15/man --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/15/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/15/include/g++-v15 --disable-silent-rules --disable-dependency-tracking --with-python-dir=/share/gcc-data/x86_64-pc-linux-gnu/15/python --enable-objc-gc --enable-languages=c,c++,d,go,objc,obj-c++,fortran,ada,m2,rust --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 15.0.9999 p, commit 3e1c7a2699f90793d9bf7107cb0b5943ba7c76c1' --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-libgomp --disable-libssp --enable-libada --disable-cet --disable-systemtap --enable-valgrind-annotations --disable-vtable-verify --disable-libvtv --with-zstd --with-isl --disable-isl-version-check --enable-default-pie --enable-host-pie --enable-host-bind-now --enable-default-ssp --disable-fixincludes --with-build-config='bootstrap-O3 bootstrap-lto' Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 15.0.0 20240927 (experimental) 0ff49a5c1d39382c57d614a29510559068947376 (Gentoo Hardened 15.0.9999 p, commit 3e1c7a2699f90793d9bf7107cb0b5943ba7c76c1)