diff options
author | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2016-03-23 18:42:19 +0000 |
---|---|---|
committer | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2016-03-23 18:42:19 +0000 |
commit | 0dfe87da55b67cfe73bed43a811791ec2eeaa261 (patch) | |
tree | 0578dd5aac3ba224d4ec3d82bfdd70c8163acfde /libgomp | |
parent | 0a2062daea00c01824cf41999f2f47771ad1302c (diff) |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234437 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgomp')
-rw-r--r-- | libgomp/ChangeLog | 5 | ||||
-rw-r--r-- | libgomp/testsuite/libgomp.c++/pr70376.C | 20 |
2 files changed, 25 insertions, 0 deletions
diff --git a/libgomp/ChangeLog b/libgomp/ChangeLog index 12d78347d67..cb8c98edabe 100644 --- a/libgomp/ChangeLog +++ b/libgomp/ChangeLog @@ -1,3 +1,8 @@ +2016-03-23 Jakub Jelinek <jakub@redhat.com> + + PR c++/70376 + * testsuite/libgomp.c++/pr70376.C: New test. + 2016-03-23 Tom de Vries <tom@codesourcery.com> * testsuite/libgomp.oacc-fortran/reduction-2.f90: Add missing diff --git a/libgomp/testsuite/libgomp.c++/pr70376.C b/libgomp/testsuite/libgomp.c++/pr70376.C new file mode 100644 index 00000000000..595c2cc930c --- /dev/null +++ b/libgomp/testsuite/libgomp.c++/pr70376.C @@ -0,0 +1,20 @@ +// PR c++/70376 +// { dg-do link } + +template <typename T> +struct A +{ + A() { } + A(const A&) { } + void foo() { } +}; + +int +main () +{ + A<int> a; + #pragma omp taskloop + for (int i = 0; i < 64; i++) + a.foo(); + return 0; +} |