https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89590
Bug ID: 89590 Summary: [7/8/9 Regression] ICE in maybe_emit_free_warning Product: gcc Version: 9.0 Status: UNCONFIRMED Keywords: ice-on-invalid-code Severity: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: jakub at gcc dot gnu.org CC: jakub at gcc dot gnu.org, msebor at gcc dot gnu.org, su at cs dot ucdavis.edu, webrown.cpp at gmail dot com Depends on: 89566 Target Milestone: --- +++ This bug was initially created as a clone of Bug #89566 +++ Filed for: $ cat t.c && gcc -O2 -S -Wall t.c void f (void) { ((void (*)()) __builtin_free) (); } during RTL pass: expand t.c: In function âfâ: t.c:3:4: internal compiler error: tree check: accessed operand 4 of call_expr with 3 operands in maybe_emit_free_warning, at builtins.c:10608 3 | ((void (*)()) __builtin_free) (); | ~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 0x15b045d tree_operand_check_failed(int, tree_node const*, char const*, int, char const*) /src/gcc/svn/gcc/tree.c:10059 0x827e8c tree_operand_check(tree_node*, int, char const*, int, char const*) /src/gcc/svn/gcc/tree.h:3676 0x9d4bdb maybe_emit_free_warning /src/gcc/svn/gcc/builtins.c:10608 0x9cc317 expand_builtin(tree_node*, rtx_def*, rtx_def*, machine_mode, int) /src/gcc/svn/gcc/builtins.c:8305 from that PR. Referenced Bugs: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89566 [Bug 89566] [9 Regression] ICE on compilable C++ code: in gimple_call_arg, at gimple.h:3166