re PR c++/84791 (ICE with broken OpenMP reduction clause)
authorJakub Jelinek <jakub@redhat.com>
Fri, 30 Mar 2018 18:38:36 +0000 (20:38 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 30 Mar 2018 18:38:36 +0000 (20:38 +0200)
commit9d620422f5ba32ae0dc1daf47da5382f876408f5
tree60d00170918b6712fb92a72b22f94ec9ec9c6361
parent85d367756d15aee2a4e40ac147fc567bad949a27
re PR c++/84791 (ICE with broken OpenMP reduction clause)

PR c++/84791
* semantics.c (finish_omp_reduction_clause): If
OMP_CLAUSE_REDUCTION_PLACEHOLDER is error_mark_node, return true
even if processing_template_decl.

* g++.dg/gomp/pr84791.C: New test.

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