re PR c++/59628 (ICE with invalid OpenMP "declare reduction" clause)
authorPaolo Carlini <paolo.carlini@oracle.com>
Fri, 12 Dec 2014 21:50:12 +0000 (21:50 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Fri, 12 Dec 2014 21:50:12 +0000 (21:50 +0000)
commit88957d5e1497d3e27e31f3513866e7d88904c08f
tree1f0a6098fda104214d7e0b892aa8b56fe5d198df
parentd95521b4118c83b23997a823b0682a385609fd84
re PR c++/59628 (ICE with invalid OpenMP "declare reduction" clause)

/cp
2014-12-12  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/59628
* semantics.c (finish_omp_reduction_clause): Early return true
if DECL_SAVED_TREE (id) is NULL_TREE.

/testsuite
2014-12-12  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/59628
* g++.dg/gomp/pr59628.C: New.

From-SVN: r218692
gcc/cp/ChangeLog
gcc/cp/semantics.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/gomp/pr59628.C [new file with mode: 0644]