mirror of git://gcc.gnu.org/git/gcc.git
re PR c++/52582 (g++ ICE when compiling qt-4.8.0 with -O2 on PPC (32bit))
PR c++/52582 * config/rs6000/rs6000.c (call_ABI_of_interest): Return true if c_node is NULL. * g++.dg/opt/pr52582.C: New test. From-SVN: r185384
This commit is contained in:
parent
43094d442e
commit
0ec2c2a943
|
@ -1,3 +1,8 @@
|
||||||
|
2012-03-14 Jakub Jelinek <jakub@redhat.com>
|
||||||
|
|
||||||
|
PR c++/52582
|
||||||
|
* g++.dg/opt/pr52582.C: New test.
|
||||||
|
|
||||||
2012-03-14 Richard Guenther <rguenther@suse.de>
|
2012-03-14 Richard Guenther <rguenther@suse.de>
|
||||||
|
|
||||||
PR tree-optimization/52571
|
PR tree-optimization/52571
|
||||||
|
|
|
@ -0,0 +1,28 @@
|
||||||
|
// PR c++/52582
|
||||||
|
// { dg-do compile }
|
||||||
|
// { dg-options "-O2" }
|
||||||
|
|
||||||
|
inline void *operator new (__SIZE_TYPE__, void *p) throw ()
|
||||||
|
{
|
||||||
|
return p;
|
||||||
|
}
|
||||||
|
|
||||||
|
struct B
|
||||||
|
{
|
||||||
|
virtual ~B ();
|
||||||
|
B ();
|
||||||
|
};
|
||||||
|
|
||||||
|
struct A : B
|
||||||
|
{
|
||||||
|
A () : B () {}
|
||||||
|
virtual void bar ();
|
||||||
|
};
|
||||||
|
|
||||||
|
void
|
||||||
|
foo ()
|
||||||
|
{
|
||||||
|
char a[64];
|
||||||
|
B *b = new (&a) A ();
|
||||||
|
b->~B ();
|
||||||
|
}
|
Loading…
Reference in New Issue