From: Jakub Jelinek Date: Wed, 11 Jul 2018 13:13:31 +0000 (+0200) Subject: re PR c++/86443 (ICEs on #pragma omp distribute parallel for with class iterators) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2bae8b2fadab13b6f886829f782e4d5cffdfafd6;p=gcc.git re PR c++/86443 (ICEs on #pragma omp distribute parallel for with class iterators) PR c++/86443 * testsuite/libgomp.c++/for-15.C (a): Remove unused variable. (results): Make sure the variable is not inside declare target region. (qux): Remove unused function. From-SVN: r262552 --- diff --git a/libgomp/ChangeLog b/libgomp/ChangeLog index 1423598d189..3b39bb795fc 100644 --- a/libgomp/ChangeLog +++ b/libgomp/ChangeLog @@ -1,3 +1,10 @@ +2018-07-11 Jakub Jelinek + + PR c++/86443 + * testsuite/libgomp.c++/for-15.C (a): Remove unused variable. + (results): Make sure the variable is not inside declare target region. + (qux): Remove unused function. + 2018-07-10 Jakub Jelinek PR c++/86443 diff --git a/libgomp/testsuite/libgomp.c++/for-15.C b/libgomp/testsuite/libgomp.c++/for-15.C index 5e922acc0fa..d48fa37beb0 100644 --- a/libgomp/testsuite/libgomp.c++/for-15.C +++ b/libgomp/testsuite/libgomp.c++/for-15.C @@ -88,10 +88,11 @@ private: template const I &J::begin () { return b; } template const I &J::end () { return e; } +#pragma omp end declare target -int a[2000]; int results[2000]; +#pragma omp declare target template void baz (I &i) @@ -109,13 +110,6 @@ baz (int i) results[i]++; } -void -qux (I &i) -{ - if (*i != 1931) - abort (); -} - void f1 (J j) {