re PR c++/70376 (OpenMP taskloop construct fails to instantiate copy constructor...
authorJakub Jelinek <jakub@redhat.com>
Wed, 23 Mar 2016 18:42:19 +0000 (19:42 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 23 Mar 2016 18:42:19 +0000 (19:42 +0100)
commit048336099ee3c4e29510f140f5505ce2ad79bf55
tree0578dd5aac3ba224d4ec3d82bfdd70c8163acfde
parent05aca4e73c2b4b18dcf617a8548e754161a28eea
re PR c++/70376 (OpenMP taskloop construct fails to instantiate copy constructor(same as Bug 48869))

PR c++/70376
* cp-gimplify.c (genericize_omp_for_stmt): Don't walk OMP_FOR_CLAUSES
for OMP_TASKLOOP here.
(cp_genericize_r): Handle OMP_TASKLOOP like OMP_TASK, except do call
genericize_omp_for_stmt instead of cp_walk_tree on OMP_BODY.

* testsuite/libgomp.c++/pr70376.C: New test.

From-SVN: r234437
gcc/cp/ChangeLog
gcc/cp/cp-gimplify.c
libgomp/ChangeLog
libgomp/testsuite/libgomp.c++/pr70376.C [new file with mode: 0644]