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: gs...@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