https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90649
Bug ID: 90649 Summary: ICE tree check: accessed operand 4 of call_expr with 3 operands in generic_simplify_EQ_EXPR, at generic-match.c:42857 Product: gcc Version: 10.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: gs...@t-online.de Target Milestone: --- Affects versions down to at least gcc-5 : (release versions need -Ofast) $ cat z1.c double sqrt (); void f () { !sqrt (); } $ gcc-10-20190526 -c z1.c -Ofast z1.c: In function 'f': z1.c:4:4: warning: too few arguments to built-in function 'sqrt' expecting 1 [-Wbuiltin-declaration-mismatch] 4 | !sqrt (); | ^~~~ z1.c:1:8: note: declared here 1 | double sqrt (); | ^~~~ z1.c:4:3: internal compiler error: tree check: accessed operand 4 of call_expr with 3 operands in generic_simplify_EQ_EXPR, at generic-match.c:42857 4 | !sqrt (); | ^ 0x5bd990 tree_operand_check_failed(int, tree_node const*, char const*, int, char const*) ../../gcc/tree.c:10116 0x64cbb1 tree_operand_check(tree_node*, int, char const*, int, char const*) ../../gcc/tree.h:3685 0x118c201 generic_simplify_EQ_EXPR .../gcc/generic-match.c:42857 0x11da03d generic_simplify(unsigned int, tree_code, tree_node*, tree_node*, tree_node*) .../gcc/generic-match.c:53417 0x8d49dd fold_binary_loc(unsigned int, tree_code, tree_node*, tree_node*, tree_node*) ../../gcc/fold-const.c:9387 0x8ddeba fold_build2_loc(unsigned int, tree_code, tree_node*, tree_node*, tree_node*) ../../gcc/fold-const.c:12327 0x6833a9 c_fully_fold_internal ../../gcc/c/c-fold.c:370 0x6850a7 c_fully_fold(tree_node*, bool, bool*, bool) ../../gcc/c/c-fold.c:125 0x61f6d1 c_process_expr_stmt(unsigned int, tree_node*) ../../gcc/c/c-typeck.c:11058 0x61fabd c_finish_expr_stmt(unsigned int, tree_node*) ../../gcc/c/c-typeck.c:11103 0x673898 c_parser_statement_after_labels ../../gcc/c/c-parser.c:5611 0x6757ce c_parser_compound_statement_nostart ../../gcc/c/c-parser.c:5149 0x675f56 c_parser_compound_statement ../../gcc/c/c-parser.c:4983 0x677873 c_parser_declaration_or_fndef ../../gcc/c/c-parser.c:2355 0x67fea3 c_parser_external_declaration ../../gcc/c/c-parser.c:1653 0x680969 c_parser_translation_unit ../../gcc/c/c-parser.c:1534 0x680969 c_parse_file() ../../gcc/c/c-parser.c:19884 0x6e26d0 c_common_parse_file() ../../gcc/c-family/c-opts.c:1156