re PR tree-optimization/89541 (ICE in VN_INFO(tree_node*))
authorRichard Biener <rguenther@suse.de>
Fri, 1 Mar 2019 12:52:19 +0000 (12:52 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Fri, 1 Mar 2019 12:52:19 +0000 (12:52 +0000)
commit22fe0312b3782144a26aa1ca3769e0af883069a0
tree5e2c23b800eebe5e0b51af8a9019f894276eb296
parent9503d7b1ffd205eac2fbb6418578972f5f428b9f
re PR tree-optimization/89541 (ICE in VN_INFO(tree_node*))

2019-03-01  Richard Biener  <rguenther@suse.de>

PR middle-end/89541
* tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
get virtual operands.
(get_expr_operands): Handle CONST_DECL like other decls.

* gfortran.dg/pr89451.f90: New testcase.

From-SVN: r269307
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/pr89451.f90 [new file with mode: 0644]
gcc/tree-ssa-operands.c