public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/114973] New: 14.1.0 - internal compiler error: 'verify_type' failed
@ 2024-05-07 12:01 sezeroz at gmail dot com
  2024-05-07 12:02 ` [Bug c/114973] " sezeroz at gmail dot com
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: sezeroz at gmail dot com @ 2024-05-07 12:01 UTC (permalink / raw)
  To: gcc-bugs

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.)

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug c/114973] 14.1.0 - internal compiler error: 'verify_type' failed
  2024-05-07 12:01 [Bug c/114973] New: 14.1.0 - internal compiler error: 'verify_type' failed sezeroz at gmail dot com
@ 2024-05-07 12:02 ` sezeroz at gmail dot com
  2024-05-07 12:30 ` rguenth at gcc dot gnu.org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: sezeroz at gmail dot com @ 2024-05-07 12:02 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Ozkan Sezer <sezeroz at gmail dot com> ---
Created attachment 58120
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58120&action=edit
stderr output

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug c/114973] 14.1.0 - internal compiler error: 'verify_type' failed
  2024-05-07 12:01 [Bug c/114973] New: 14.1.0 - internal compiler error: 'verify_type' failed sezeroz at gmail dot com
  2024-05-07 12:02 ` [Bug c/114973] " sezeroz at gmail dot com
@ 2024-05-07 12:30 ` rguenth at gcc dot gnu.org
  2024-05-07 12:41 ` sezeroz at gmail dot com
  2024-05-07 17:19 ` sezeroz at gmail dot com
  3 siblings, 0 replies; 5+ messages in thread
From: rguenth at gcc dot gnu.org @ 2024-05-07 12:30 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |DUPLICATE

--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
This a different incarnation of PR114931, fixed on trunk as well already (I
just checked).

*** This bug has been marked as a duplicate of bug 114931 ***

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug c/114973] 14.1.0 - internal compiler error: 'verify_type' failed
  2024-05-07 12:01 [Bug c/114973] New: 14.1.0 - internal compiler error: 'verify_type' failed sezeroz at gmail dot com
  2024-05-07 12:02 ` [Bug c/114973] " sezeroz at gmail dot com
  2024-05-07 12:30 ` rguenth at gcc dot gnu.org
@ 2024-05-07 12:41 ` sezeroz at gmail dot com
  2024-05-07 17:19 ` sezeroz at gmail dot com
  3 siblings, 0 replies; 5+ messages in thread
From: sezeroz at gmail dot com @ 2024-05-07 12:41 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Ozkan Sezer <sezeroz at gmail dot com> ---
(In reply to Richard Biener from comment #2)
> This a different incarnation of PR114931, fixed on trunk as well already (I
> just checked).
> 
> *** This bug has been marked as a duplicate of bug 114931 ***

Is there a backport of the patch to gcc14 so that I can try?

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug c/114973] 14.1.0 - internal compiler error: 'verify_type' failed
  2024-05-07 12:01 [Bug c/114973] New: 14.1.0 - internal compiler error: 'verify_type' failed sezeroz at gmail dot com
                   ` (2 preceding siblings ...)
  2024-05-07 12:41 ` sezeroz at gmail dot com
@ 2024-05-07 17:19 ` sezeroz at gmail dot com
  3 siblings, 0 replies; 5+ messages in thread
From: sezeroz at gmail dot com @ 2024-05-07 17:19 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from Ozkan Sezer <sezeroz at gmail dot com> ---
(In reply to Richard Biener from comment #2)
> This a different incarnation of PR114931, fixed on trunk as well already (I
> just checked).
> 
> *** This bug has been marked as a duplicate of bug 114931 ***

Confirmed that trunk has it fixed.

Fix hopefully gets backported soon.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-05-07 17:19 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-05-07 12:01 [Bug c/114973] New: 14.1.0 - internal compiler error: 'verify_type' failed sezeroz at gmail dot com
2024-05-07 12:02 ` [Bug c/114973] " sezeroz at gmail dot com
2024-05-07 12:30 ` rguenth at gcc dot gnu.org
2024-05-07 12:41 ` sezeroz at gmail dot com
2024-05-07 17:19 ` sezeroz at gmail dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).