[Bug c++/67522] OpenMP ICE in type_dependent_expression_p
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Sep 10 07:41:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67522
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Thu Sep 10 07:40:59 2015
New Revision: 227617
URL: https://gcc.gnu.org/viewcvs?rev=227617&root=gcc&view=rev
Log:
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.
Added:
branches/gcc-5-branch/gcc/testsuite/g++.dg/gomp/pr67522.C
Modified:
branches/gcc-5-branch/gcc/cp/ChangeLog
branches/gcc-5-branch/gcc/cp/semantics.c
branches/gcc-5-branch/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list