aboutsummaryrefslogtreecommitdiff
path: root/libgomp
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2018-07-11 15:13:31 +0200
committerJakub Jelinek <jakub@gcc.gnu.org>2018-07-11 15:13:31 +0200
commit2bae8b2fadab13b6f886829f782e4d5cffdfafd6 (patch)
treefb5b5e86400913a5104df2744b8f7c4e4a4f837e /libgomp
parentcc71a1fe3773425b4da8b767fae445cc56e169c2 (diff)
downloadgcc-2bae8b2fadab13b6f886829f782e4d5cffdfafd6.zip
gcc-2bae8b2fadab13b6f886829f782e4d5cffdfafd6.tar.gz
gcc-2bae8b2fadab13b6f886829f782e4d5cffdfafd6.tar.bz2
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
Diffstat (limited to 'libgomp')
-rw-r--r--libgomp/ChangeLog7
-rw-r--r--libgomp/testsuite/libgomp.c++/for-15.C10
2 files changed, 9 insertions, 8 deletions
diff --git a/libgomp/ChangeLog b/libgomp/ChangeLog
index 1423598..3b39bb7 100644
--- a/libgomp/ChangeLog
+++ b/libgomp/ChangeLog
@@ -1,3 +1,10 @@
+2018-07-11 Jakub Jelinek <jakub@redhat.com>
+
+ 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 <jakub@redhat.com>
PR c++/86443
diff --git a/libgomp/testsuite/libgomp.c++/for-15.C b/libgomp/testsuite/libgomp.c++/for-15.C
index 5e922ac..d48fa37 100644
--- a/libgomp/testsuite/libgomp.c++/for-15.C
+++ b/libgomp/testsuite/libgomp.c++/for-15.C
@@ -88,10 +88,11 @@ private:
template <typename T> const I<T> &J<T>::begin () { return b; }
template <typename T> const I<T> &J<T>::end () { return e; }
+#pragma omp end declare target
-int a[2000];
int results[2000];
+#pragma omp declare target
template <typename T>
void
baz (I<T> &i)
@@ -110,13 +111,6 @@ baz (int i)
}
void
-qux (I<int> &i)
-{
- if (*i != 1931)
- abort ();
-}
-
-void
f1 (J<int> j)
{
#pragma omp distribute parallel for default(none)