https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108424
Bug ID: 108424 Summary: [13 Regression] ICE in perform_integral_promotions, at c/c-typeck.cc:2277 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, with -std=c2x : $ cat z1.c void f (int n) { switch (n) { case nullptr: default: } } $ cat z2.c void f (int n) { switch (n) { case nullptr: case 1: } return; } $ gcc-13-20230115 -c z1.c -std=c2x z1.c: In function 'f': z1.c:4:3: internal compiler error: in perform_integral_promotions, at c/c-typeck.cc:2277 4 | case nullptr: | ^~~~ 0x795f60 perform_integral_promotions(tree_node*) ../../gcc/c/c-typeck.cc:2277 0x7f1987 check_case_value ../../gcc/c-family/c-common.cc:2243 0x8269fd c_add_case_label(unsigned int, splay_tree_s*, tree_node*, tree_node*, tree_node*, tree_node*) ../../gcc/c-family/c-common.cc:5092 0x798436 do_case(unsigned int, tree_node*, tree_node*, tree_node*) ../../gcc/c/c-typeck.cc:11561 0x7d3ab6 c_parser_label ../../gcc/c/c-parser.cc:6394 0x7de9f5 c_parser_compound_statement_nostart ../../gcc/c/c-parser.cc:6207 0x7def03 c_parser_compound_statement ../../gcc/c/c-parser.cc:6117 0x7dc522 c_parser_statement_after_labels ../../gcc/c/c-parser.cc:6628 0x7e28e2 c_parser_statement ../../gcc/c/c-parser.cc:6599 0x7e28e2 c_parser_c99_block_statement ../../gcc/c/c-parser.cc:6858 0x7dca53 c_parser_switch_statement ../../gcc/c/c-parser.cc:7120 0x7dca53 c_parser_statement_after_labels ../../gcc/c/c-parser.cc:6637 0x7de68a c_parser_compound_statement_nostart ../../gcc/c/c-parser.cc:6308 0x7def03 c_parser_compound_statement ../../gcc/c/c-parser.cc:6117 0x7e0f13 c_parser_declaration_or_fndef ../../gcc/c/c-parser.cc:2853 0x7e869f c_parser_external_declaration ../../gcc/c/c-parser.cc:1925 0x7e8fdd c_parser_translation_unit ../../gcc/c/c-parser.cc:1779 0x7e8fdd c_parse_file() ../../gcc/c/c-parser.cc:24602 0x847651 c_common_parse_file() ../../gcc/c-family/c-opts.cc:1248