]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR c++/86443 (ICEs on #pragma omp distribute parallel for with class iterators)
authorJakub Jelinek <jakub@redhat.com>
Wed, 11 Jul 2018 13:13:31 +0000 (15:13 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 11 Jul 2018 13:13:31 +0000 (15:13 +0200)
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

libgomp/ChangeLog
libgomp/testsuite/libgomp.c++/for-15.C

index 1423598d1892a60eadb081a08273de83e2539376..3b39bb795fcb120740b6721d84bffe37914231ce 100644 (file)
@@ -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
index 5e922acc0fa6df48dacd9c91d8ccacc6b9ab86c7..d48fa37beb0d2bf013310581305fe408d6304d1e 100644 (file)
@@ -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)
@@ -109,13 +110,6 @@ baz (int i)
   results[i]++;
 }
 
-void
-qux (I<int> &i)
-{
-  if (*i != 1931)
-    abort ();
-}
-
 void
 f1 (J<int> j)
 {