https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124635
Bug ID: 124635
Summary: [16 Regression] ICE: 'verify_type' failed:
'TYPE_CANONICAL' is not compatible with -g
-fsso-struct=big-endian
Product: gcc
Version: 16.0
Status: UNCONFIRMED
Keywords: ice-on-valid-code
Severity: normal
Priority: P3
Component: debug
Assignee: unassigned at gcc dot gnu.org
Reporter: zsojka at seznam dot cz
Target Milestone: ---
Host: x86_64-pc-linux-gnu
Target: x86_64-pc-linux-gnu
Created attachment 64025
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=64025&action=edit
reduced testcase
Compiler output:
$ x86_64-pc-linux-gnu-gcc -g -fsso-struct=big-endian testcase.c
testcase.c:4:1: error: 'TYPE_CANONICAL' is not compatible
4 | };
| ^
<record_type 0x7fc0d6fc7000 S reverse-storage-order TI
size <integer_cst 0x7fc0d6e02fa8 type <integer_type 0x7fc0d6e1d0a8
bitsizetype> constant 128>
...
pointer_to_this <pointer_type 0x7fc0d6fc7348> chain <type_decl
0x7fc0d6e2c820 D.2958>>
testcase.c:4:1: internal compiler error: 'verify_type' failed
0x2ca954d internal_error(char const*, ...)
/repo/gcc-trunk/gcc/diagnostic-global-context.cc:787
0x19f8a1e verify_type(tree_node const*)
/repo/gcc-trunk/gcc/tree.cc:14780
0x10ed564 gen_type_die_with_usage
/repo/gcc-trunk/gcc/dwarf2out.cc:26773
0x10e9eea gen_type_die
/repo/gcc-trunk/gcc/dwarf2out.cc:27008
0x10e9eea gen_decl_die
/repo/gcc-trunk/gcc/dwarf2out.cc:27649
0x10eb468 dwarf2out_decl
/repo/gcc-trunk/gcc/dwarf2out.cc:28226
0x10eb76f dwarf2out_type_decl
/repo/gcc-trunk/gcc/dwarf2out.cc:27944
0x10eb76f dwarf2out_type_decl
/repo/gcc-trunk/gcc/dwarf2out.cc:27939
0x14e4ba4 rest_of_type_compilation(tree_node*, int)
/repo/gcc-trunk/gcc/passes.cc:345
0xe65a06 finish_struct(unsigned long, tree_node*, tree_node*, tree_node*,
c_struct_parse_info*, tree_node**)
/repo/gcc-trunk/gcc/c/c-decl.cc:10050
0xeba906 c_parser_struct_or_union_specifier
/repo/gcc-trunk/gcc/c/c-parser.cc:4531
0xeba906 c_parser_declspecs(c_parser*, c_declspecs*, bool, bool, bool, bool,
bool, bool, bool, c_lookahead_kind)
/repo/gcc-trunk/gcc/c/c-parser.cc:3903
0xee6555 c_parser_declaration_or_fndef
/repo/gcc-trunk/gcc/c/c-parser.cc:2564
0xef730b c_parser_external_declaration
/repo/gcc-trunk/gcc/c/c-parser.cc:2254
0xef81b8 c_parser_translation_unit
/repo/gcc-trunk/gcc/c/c-parser.cc:2093
0xef81b8 c_parse_file()
/repo/gcc-trunk/gcc/c/c-parser.cc:31302
0xf7d9f1 c_common_parse_file()
/repo/gcc-trunk/gcc/c-family/c-opts.cc:1430
/repo/gcc-trunk/binary-trunk-20260325170941-r16-8288-g476d61a8cb28b6-checking-yes-rtl-df-extra-nobootstrap-amd64/bin/../libexec/gcc/x86_64-pc-linux-gnu/16.0.1/cc1
-quiet -iprefix
/repo/gcc-trunk/binary-trunk-20260325170941-r16-8288-g476d61a8cb28b6-checking-yes-rtl-df-extra-nobootstrap-amd64/bin/../lib/gcc/x86_64-pc-linux-gnu/16.0.1/
testcase.c -quiet -dumpdir a- -dumpbase testcase.c -dumpbase-ext .c
-mtune=generic -march=x86-64 -g -fsso-struct=big-endian -o /tmp/ccPVSPrC.s
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
$ x86_64-pc-linux-gnu-gcc -v
Using built-in specs.
COLLECT_GCC=/repo/gcc-trunk/binary-latest/bin/x86_64-pc-linux-gnu-gcc
COLLECT_LTO_WRAPPER=/repo/gcc-trunk/binary-trunk-20260325170941-r16-8288-g476d61a8cb28b6-checking-yes-rtl-df-extra-nobootstrap-amd64/bin/../libexec/gcc/x86_64-pc-linux-gnu/16.0.1/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /repo/gcc-trunk//configure --enable-languages=c,c++
--enable-valgrind-annotations --disable-nls --enable-checking=yes,rtl,df,extra
--disable-bootstrap --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu
--target=x86_64-pc-linux-gnu --with-ld=/usr/bin/x86_64-pc-linux-gnu-ld
--with-as=/usr/bin/x86_64-pc-linux-gnu-as --enable-libsanitizer
--disable-libstdcxx-pch
--prefix=/repo/gcc-trunk//binary-trunk-20260325170941-r16-8288-g476d61a8cb28b6-checking-yes-rtl-df-extra-nobootstrap-amd64
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 16.0.1 20260325 (experimental) (GCC)