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

            Bug ID: 114973
           Summary: 14.1.0 - internal compiler error: 'verify_type' failed
           Product: gcc
           Version: 14.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: sezeroz at gmail dot com
  Target Milestone: ---

Created attachment 58119
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58119&action=edit
preprocessed source

Happens while compiling mikmod player source with -std=gnu23:


gcc -DHAVE_CONFIG_H -I. -I.. -I/home/ozzie/x1/include -pthread -D_REENTRANT -g
-O2 -freport-bug -Wall -D_REENTRANT -std=gnu23 -MT display.o -MD -MP -MF
.deps/display.Tpo -c -o display.o display.c

In file included from display.c:49:
mwindow.h:70:1: error: 'TYPE_CANONICAL' has different 'TYPE_CANONICAL'
   70 | typedef void (*WinResizeFunc) (MWINDOW *win, int dx, int dy);
      | ^~~~~~~
 <function_type 0x7f15760eaa80
    type <void_type 0x7f1576424f18 void asm_written VOID
        align:8 warn_if_not_align:0 symtab:0 alias-set -1 canonical-type
0x7f1576424f18
        pointer_to_this <pointer_type 0x7f157642c000>>
    asm_written QI
    size <integer_cst 0x7f1576426048 type <integer_type 0x7f15764240a8
bitsizetype> constant 8>
    unit-size <integer_cst 0x7f1576426060 type <integer_type 0x7f1576424000
sizetype> constant 1>
    align:8 warn_if_not_align:0 symtab:1980680544 alias-set -1
structural-equality
    arg-types <tree_list 0x7f15760e6988
        value <pointer_type 0x7f15760ea738 type <record_type 0x7f15760ea690
MWINDOW>
            asm_written unsigned DI
            size <integer_cst 0x7f1576404f48 constant 64>
            unit-size <integer_cst 0x7f1576404f60 constant 8>
            align:64 warn_if_not_align:0 symtab:1980679904 alias-set -1
canonical-type 0x7f15760ea738>
        chain <tree_list 0x7f15760e6960 value <integer_type 0x7f15764245e8 int>
            chain <tree_list 0x7f15760e6938 value <integer_type 0x7f15764245e8
int>
                chain <tree_list 0x7f157641ed98 value <void_type 0x7f1576424f18
void>>>>>
    pointer_to_this <pointer_type 0x7f15760eab28>>
 <function_type 0x7f15760f0150
    type <void_type 0x7f1576424f18 void asm_written VOID
        align:8 warn_if_not_align:0 symtab:0 alias-set -1 canonical-type
0x7f1576424f18
        pointer_to_this <pointer_type 0x7f157642c000>>
    QI
    size <integer_cst 0x7f1576426048 type <integer_type 0x7f15764240a8
bitsizetype> constant 8>
    unit-size <integer_cst 0x7f1576426060 type <integer_type 0x7f1576424000
sizetype> constant 1>
    align:8 warn_if_not_align:0 symtab:0 alias-set -1 canonical-type
0x7f15760eaa80
    arg-types <tree_list 0x7f15760e6af0
        value <pointer_type 0x7f15760f0540 type <record_type 0x7f15760f03f0
MWINDOW>
            asm_written unsigned DI
            size <integer_cst 0x7f1576404f48 constant 64>
            unit-size <integer_cst 0x7f1576404f60 constant 8>
            align:64 warn_if_not_align:0 symtab:1980681664 alias-set -1
canonical-type 0x7f15760ea738>
        chain <tree_list 0x7f15760e6ac8 value <integer_type 0x7f15764245e8 int>
            chain <tree_list 0x7f15760e6aa0 value <integer_type 0x7f15764245e8
int>
                chain <tree_list 0x7f157641ed98 value <void_type 0x7f1576424f18
void>>>>>
    pointer_to_this <pointer_type 0x7f15760f30a8>>
mwindow.h:70:1: internal compiler error: 'verify_type' failed
0x13774de verify_type(tree_node const*)
        ../../gcc-14.1.0/gcc/tree.cc:14395
0xbaf894 gen_type_die_with_usage
        ../../gcc-14.1.0/gcc/dwarf2out.cc:26287
0xbb1d77 gen_type_die
        ../../gcc-14.1.0/gcc/dwarf2out.cc:26518
0xbb1d77 modified_type_die
        ../../gcc-14.1.0/gcc/dwarf2out.cc:14000
0xbb1a85 modified_type_die
        ../../gcc-14.1.0/gcc/dwarf2out.cc:14077
0xbb3406 add_type_attribute
        ../../gcc-14.1.0/gcc/dwarf2out.cc:22397
0xbad08e gen_typedef_die
        ../../gcc-14.1.0/gcc/dwarf2out.cc:26193
0xbad08e gen_typedef_die
        ../../gcc-14.1.0/gcc/dwarf2out.cc:26127
0xbad08e gen_decl_die
        ../../gcc-14.1.0/gcc/dwarf2out.cc:27161
0xbad8db dwarf2out_decl
        ../../gcc-14.1.0/gcc/dwarf2out.cc:27716
0xbadb38 dwarf2out_type_decl
        ../../gcc-14.1.0/gcc/dwarf2out.cc:27434
0xbadb38 dwarf2out_type_decl
        ../../gcc-14.1.0/gcc/dwarf2out.cc:27429
0xf0e03b rest_of_decl_compilation(tree_node*, int, int)
        ../../gcc-14.1.0/gcc/passes.cc:251
0x975976 finish_decl(tree_node*, unsigned int, tree_node*, tree_node*,
tree_node*)
        ../../gcc-14.1.0/gcc/c/c-decl.cc:6056
0x9e3242 c_parser_declaration_or_fndef
        ../../gcc-14.1.0/gcc/c/c-parser.cc:2841
0x9eeb5b c_parser_external_declaration
        ../../gcc-14.1.0/gcc/c/c-parser.cc:2046
0x9ef545 c_parser_translation_unit
        ../../gcc-14.1.0/gcc/c/c-parser.cc:1900
0x9ef545 c_parse_file()
        ../../gcc-14.1.0/gcc/c/c-parser.cc:26889
0xa66aa1 c_common_parse_file()
        ../../gcc-14.1.0/gcc/c-family/c-opts.cc:1311
Please submit a full bug report, with preprocessed source.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
The bug is not reproducible, so it is likely a hardware or OS problem.

Attaching preprocessed source (along with the stderr
output, because the above is likely mangled.)

Reply via email to