public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/107682] New: [13 Regression] ICE in c_parser_braced_init, at c/c-parser.cc:5619
@ 2022-11-14 17:30 gscfq@t-online.de
  2022-11-14 17:35 ` [Bug c/107682] " mpolacek at gcc dot gnu.org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: gscfq@t-online.de @ 2022-11-14 17:30 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 107682
           Summary: [13 Regression] ICE in c_parser_braced_init, at
                    c/c-parser.cc:5619
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gscfq@t-online.de
  Target Milestone: ---

Started between 20220821 and 20220828 :
(gcc configured with --enable-checking=yes)


$ cat z1.c
int x() = {};

$ cat z2.c
int x(n) = {};


$ gcc-13-20221106 -c z1.c
z1.c:1:1: error: function 'x' is initialized like a variable
    1 | int x() = {};
      | ^~~
z1.c:1:1: internal compiler error: in fold_convert_loc, at fold-const.cc:2618
0xb06210 fold_convert_loc(unsigned int, tree_node*, tree_node*)
        ../../gcc/fold-const.cc:2618
0x80074c pop_init_level(unsigned int, int, obstack*, unsigned int)
        ../../gcc/c/c-typeck.cc:9100
0x8353e0 c_parser_braced_init
        ../../gcc/c/c-parser.cc:5619
0x8366b1 c_parser_initializer
        ../../gcc/c/c-parser.cc:5521
0x851387 c_parser_declaration_or_fndef
        ../../gcc/c/c-parser.cc:2436
0x85cf8f c_parser_external_declaration
        ../../gcc/c/c-parser.cc:1833
0x85d8bd c_parser_translation_unit
        ../../gcc/c/c-parser.cc:1695
0x85d8bd c_parse_file()
        ../../gcc/c/c-parser.cc:24359
0x8da031 c_common_parse_file()
        ../../gcc/c-family/c-opts.cc:1244

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

end of thread, other threads:[~2023-04-27  9:42 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-14 17:30 [Bug c/107682] New: [13 Regression] ICE in c_parser_braced_init, at c/c-parser.cc:5619 gscfq@t-online.de
2022-11-14 17:35 ` [Bug c/107682] " mpolacek at gcc dot gnu.org
2022-11-14 17:37 ` mpolacek at gcc dot gnu.org
2022-11-16 12:43 ` rguenth at gcc dot gnu.org
2023-04-13 10:29 ` jakub at gcc dot gnu.org
2023-04-26  6:57 ` [Bug c/107682] [13/14 " rguenth at gcc dot gnu.org
2023-04-27  9:36 ` cvs-commit at gcc dot gnu.org
2023-04-27  9:41 ` cvs-commit at gcc dot gnu.org
2023-04-27  9:42 ` jakub at gcc dot gnu.org

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