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

            Bug ID: 123090
           Summary: lto-dump: internal compiler error: tree check:
                    expected class ‘type’, have ‘exceptional’
           Product: gcc
           Version: 16.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: lto
          Assignee: unassigned at gcc dot gnu.org
          Reporter: hjl.tools at gmail dot com
  Target Milestone: ---
            Target: x86-64

[hjl@gnu-zen4-1 gcc]$ cat x.c
void
foo (void)
{
}
[hjl@gnu-zen4-1 gcc]$ ./xgcc -B./ -c -flto x.c -m32 
[hjl@gnu-zen4-1 gcc]$ ./lto-dump x.o 
lto-dump: internal compiler error: tree check: expected class ‘type’, have
‘exceptional’ (optimization_node) in type_with_linkage_p, at ipa-utils.h:208
0x2bd0554 internal_error(char const*, ...)
        /export/gnu/import/git/sources/gcc/gcc/diagnostic-global-context.cc:787
0x115b79c tree_class_check_failed(tree_node const*, tree_code_class, char
const*, int, char const*)
        /export/gnu/import/git/sources/gcc/gcc/tree.cc:9240
0x446e94 tree_class_check(tree_node const*, tree_code_class, char const*, int,
char const*)
        /export/gnu/import/git/sources/gcc/gcc/tree.h:4194
0x46ad88 type_with_linkage_p(tree_node const*)
        /export/gnu/import/git/sources/gcc/gcc/ipa-utils.h:208
0x479bcd unify_scc
        /export/gnu/import/git/sources/gcc/gcc/lto/lto-common.cc:1701
0x47a7dd lto_read_decls
        /export/gnu/import/git/sources/gcc/gcc/lto/lto-common.cc:1950
0x47b592 lto_file_finalize
        /export/gnu/import/git/sources/gcc/gcc/lto/lto-common.cc:2310
0x47b5ef lto_create_files_from_ids
        /export/gnu/import/git/sources/gcc/gcc/lto/lto-common.cc:2320
0x47b7cf lto_file_read
        /export/gnu/import/git/sources/gcc/gcc/lto/lto-common.cc:2375
0x47e6af read_cgraph_and_symbols(unsigned int, char const**)
        /export/gnu/import/git/sources/gcc/gcc/lto/lto-common.cc:2829
0x46c070 lto_main()
        /export/gnu/import/git/sources/gcc/gcc/lto/lto-dump.cc:330
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.
[hjl@gnu-zen4-1 gcc]$

Reply via email to