Commit 2bae8b2f by Jakub Jelinek Committed by Jakub Jelinek

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
parent cc71a1fe
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
......
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment