Commit 134f5295 by Jakub Jelinek Committed by Jakub Jelinek

re PR tree-optimization/51575 (ICE: verify_gimple failed: statement marked for…

re PR tree-optimization/51575 (ICE: verify_gimple failed: statement marked for throw, but doesn't with -fnon-call-exceptions and placement new)

	PR tree-optimization/51575
	* g++.dg/opt/pr51575.C: New test.

From-SVN: r182409
parent d3702b4f
2011-12-16 Jakub Jelinek <jakub@redhat.com> 2011-12-16 Jakub Jelinek <jakub@redhat.com>
PR tree-optimization/51575
* g++.dg/opt/pr51575.C: New test.
PR debug/51557 PR debug/51557
* gcc.dg/pr51557.c: New test. * gcc.dg/pr51557.c: New test.
......
// PR tree-optimization/51575
// { dg-do compile }
// { dg-options "-O -fnon-call-exceptions" }
#include <new>
struct S
{
S ()
{
for (int i = 0; i < 3; ++i)
new (&a[i]) double ();
}
double a[4];
};
void
foo ()
{
S s;
}
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