https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114095
Bug ID: 114095 Summary: ICE: in build2, at tree.cc:5097 Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: iamanonymous.cs at gmail dot com Target Milestone: --- Compiler Explorer: https://godbolt.org/z/c4d5x6Eza ******************************************************************************* OS and Platform: $ uname -a: Linux ubuntu 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux ******************************************************************************* gcc version: $ gcc -v Using built-in specs. COLLECT_GCC=/root/gcc_set/2024020020942/bin/gcc COLLECT_LTO_WRAPPER=/root/gcc_set/2024020020942/libexec/gcc/x86_64-pc-linux-gnu/14.0.1/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: ../gcc/configure --prefix=/root/gcc_set/2024020020942 --with-gmp=/root/build_essential --with-mpfr=/root/build_essential --with-mpc=/root/build_essential --enable-languages=c,c++ --disable-multilib --with-sanitizer=address,undefined,thread,leak Thread model: posix Supported LTO compression algorithms: zlib gcc version 14.0.1 20240204 (experimental) (GCC) git version: 8e6ebacc9e3cee0d2053fdaceda0ae052e34b777 ******************************************************************************* Program: $ cat mutant.c __GIMPLE a(double *x) { b c; d = x_80 + c ******************************************************************************* Command Lines: $ gcc mutant.c mutant.c:1:1: error: ‘__GIMPLE’ only valid with ‘-fgimple’ 1 | __GIMPLE a(double *x) { | ^~~~~~~~ mutant.c:1:10: error: return type defaults to ‘int’ [-Wimplicit-int] 1 | __GIMPLE a(double *x) { | ^ mutant.c: In function ‘a’: mutant.c:2:3: error: unknown type name ‘b’ 2 | b c; | ^ mutant.c:3:3: error: ‘d’ undeclared (first use in this function) 3 | d = x_80 + c | ^ mutant.c:3:3: note: each undeclared identifier is reported only once for each function it appears in mutant.c:3:3: internal compiler error: in build2, at tree.cc:5097 0x869763 build2(tree_code, tree_node*, tree_node*, tree_node*) ../../gcc/gcc/tree.cc:5097 0x9f960f build2_loc(unsigned int, tree_code, tree_node*, tree_node*, tree_node*) ../../gcc/gcc/tree.h:4750 0x9f960f c_parser_gimple_binary_expression ../../gcc/gcc/c/gimple-parser.cc:1068 0x9fa561 c_parser_gimple_statement ../../gcc/gcc/c/gimple-parser.cc:878 0x9fb2aa c_parser_gimple_compound_statement ../../gcc/gcc/c/gimple-parser.cc:669 0x9fcca1 c_parser_parse_gimple_body(c_parser*, char*, c_declspec_il, profile_count) ../../gcc/gcc/c/gimple-parser.cc:253 0x9e8cd4 c_parser_declaration_or_fndef ../../gcc/gcc/c/c-parser.cc:3011 0x9f2f3b c_parser_external_declaration ../../gcc/gcc/c/c-parser.cc:2046 0x9f3925 c_parser_translation_unit ../../gcc/gcc/c/c-parser.cc:1900 0x9f3925 c_parse_file() ../../gcc/gcc/c/c-parser.cc:26815 0xa6ad51 c_common_parse_file() ../../gcc/gcc/c-family/c-opts.cc:1306 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. See <https://gcc.gnu.org/bugs/> for instructions.