re PR c++/67522 (OpenMP ICE in type_dependent_expression_p)
authorJakub Jelinek <jakub@redhat.com>
Thu, 10 Sep 2015 07:34:42 +0000 (09:34 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 10 Sep 2015 07:34:42 +0000 (09:34 +0200)
commit7da8534d1e1ec7b1470ea556b1444c5173799348
tree7399d039a1259fda5d1612397faf0278b51dae51
parentcbdfbde871992d05f9fbd6118196f5eeadfc91e6
re PR c++/67522 (OpenMP ICE in type_dependent_expression_p)

PR c++/67522
* semantics.c (handle_omp_array_sections_1): Only run
type_dependent_expression_p on VAR_DECL/PARM_DECLs.
(finish_omp_clauses) <case OMP_CLAUSE_LINEAR>: Likewise.
Don't adjust OMP_CLAUSE_LINEAR_STEP if OMP_CLAUSE_DECL
is not a VAR_DECL/PARM_DECL.

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

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