Commit 24f8d391 by Jakub Jelinek Committed by Jakub Jelinek

re PR c++/77578 (ICE in cp_parser_omp_for_loop (cp/parser.c:29404))

	PR c++/77578
	* g++.dg/gomp/pr77578.C: New test.

From-SVN: r253612
parent 4407c309
2017-10-10 Jakub Jelinek <jakub@redhat.com>
PR c++/77578
* g++.dg/gomp/pr77578.C: New test.
PR middle-end/70100
* g++.dg/opt/pr70100.C: New test.
......
// PR c++/77578
// { dg-do compile }
template <typename T>
class A
{
};
template <typename T>
struct B
{
};
template <typename T>
struct B <A <T> >
{
typedef A <T> C;
typedef typename C::D D;
template <typename U>
static void
foo (const D x, const D y)
{
U u;
{
#pragma omp parallel for
for (u.bar().y() = x.y(); u.bar().y() <= y.y(); u.bar().y()++) // { dg-error "expected" }
;
}
}
};
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