https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123596

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
I will reduce this tomorrow. 

full backtrace:
```
[apinski@xeond2 gcc]$ ~/upstream-gcc/bin/gcc t1.cc -O2
during GIMPLE pass: ehcleanup
t1.cc: In function ‘int main()’:
t1.cc:12:1: internal compiler error: tree check: expected ssa_name, have
var_decl in unlink_stmt_vdef, at tree-ssa-operands.cc:1387
   12 | }
      | ^
0x2b001cf internal_error(char const*, ...)
       
/home/apinski/src/upstream-gcc-git/gcc/gcc/diagnostic-global-context.cc:787
0xa6c2b5 tree_check_failed(tree_node const*, char const*, int, char const*,
...)
        /home/apinski/src/upstream-gcc-git/gcc/gcc/tree.cc:9204
0xa3c9ea tree_check(tree_node*, char const*, int, char const*, tree_code)
        /home/apinski/src/upstream-gcc-git/gcc/gcc/tree.h:3754
0xa3c9ea unlink_stmt_vdef(gimple*)
        /home/apinski/src/upstream-gcc-git/gcc/gcc/tree-ssa-operands.cc:1387
0x165ee5b optimize_clobbers
        /home/apinski/src/upstream-gcc-git/gcc/gcc/tree-eh.cc:3736
0x166600d cleanup_empty_eh
        /home/apinski/src/upstream-gcc-git/gcc/gcc/tree-eh.cc:4793
0x16664ec cleanup_all_empty_eh
        /home/apinski/src/upstream-gcc-git/gcc/gcc/tree-eh.cc:4929
0x16664ec execute_cleanup_eh_1
        /home/apinski/src/upstream-gcc-git/gcc/gcc/tree-eh.cc:4965
0x16664ec execute
        /home/apinski/src/upstream-gcc-git/gcc/gcc/tree-eh.cc:5023
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.

```

Reply via email to