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/testsuite | |
parent | 0a2062daea00c01824cf41999f2f47771ad1302c (diff) | |
download | gcc-0dfe87da55b67cfe73bed43a811791ec2eeaa261.tar.gz |
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/testsuite')
-rw-r--r-- | libgomp/testsuite/libgomp.c++/pr70376.C | 20 |
1 files changed, 20 insertions, 0 deletions
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; +} |