Commit 7647c841 by Jakub Jelinek Committed by Jakub Jelinek

re PR middle-end/42760 (ICE in convert_move)

	PR middle-end/42760
	* g++.dg/torture/pr42760.C: New test.

From-SVN: r155960
parent b6fd8800
2010-01-16 Jakub Jelinek <jakub@redhat.com>
PR middle-end/42760
* g++.dg/torture/pr42760.C: New test.
2010-01-15 Jing Yu <jingyu@google.com>
PR rtl-optimization/42691
......
// PR middle-end/42760
// { dg-do compile }
template <typename T>
struct A
{
static T b (T it) { return it; }
};
template <typename T, typename U>
static U
baz (T x, T y, U z)
{
for (long n = y - x; n > 0; --n)
{
*z = *x;
++z;
}
};
template <typename T, typename U>
U
bar (T x, T y, U z)
{
baz (A <T>::b (x), A <T>::b (y), A <U>::b (z));
}
struct C
{
__complex__ float v;
};
template <class T>
struct B
{
B (T y[]) { bar (y, y + 1, x); }
operator T *() { return x; }
T x[1];
};
B <C>
foo ()
{
C y[1];
return B <C> (y);
};
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