[Bug tree-optimization/59374] [4.8/4.9 Regression] -ftree-slp-vectorize breaks unique_ptr's move constructor
rguenth at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Dec 3 11:47:00 GMT 2013
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59374
--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
Testcase:
extern void abort (void);
static struct X { void *a; void *b; } a, b;
void __attribute__((noinline)) foo (void)
{
void *tem = a.b;
a.b = (void *)0;
b.b = tem;
b.a = a.a;
}
int main()
{
a.b = &a;
foo ();
if (b.b != &a)
abort ();
return 0;
}
More information about the Gcc-bugs
mailing list