Commit 92caa91a by Jason Merrill Committed by Jason Merrill

re PR c++/52582 (g++ ICE when compiling qt-4.8.0 with -O2 on PPC (32bit))

	PR c++/52582
	* method.c (implicitly_declare_fn): Set DECL_EXTERNAL.

From-SVN: r185443
parent 6715d47b
2012-03-15 Jason Merrill <jason@redhat.com>
PR c++/52582
* method.c (implicitly_declare_fn): Set DECL_EXTERNAL.
2012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org> 2012-03-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
PR c++/44783 PR c++/44783
......
...@@ -1593,6 +1593,7 @@ implicitly_declare_fn (special_function_kind kind, tree type, bool const_p) ...@@ -1593,6 +1593,7 @@ implicitly_declare_fn (special_function_kind kind, tree type, bool const_p)
DECL_DELETED_FN (fn) = deleted_p; DECL_DELETED_FN (fn) = deleted_p;
DECL_DECLARED_CONSTEXPR_P (fn) = constexpr_p; DECL_DECLARED_CONSTEXPR_P (fn) = constexpr_p;
} }
DECL_EXTERNAL (fn) = true;
DECL_NOT_REALLY_EXTERN (fn) = 1; DECL_NOT_REALLY_EXTERN (fn) = 1;
DECL_DECLARED_INLINE_P (fn) = 1; DECL_DECLARED_INLINE_P (fn) = 1;
gcc_assert (!TREE_USED (fn)); gcc_assert (!TREE_USED (fn));
......
2012-03-15 Jason Merrill <jason@redhat.com>
* g++.dg/torture/pr52582.C: New.
2012-03-15 Bernhard Reutner-Fischer <aldot@gcc.gnu.org> 2012-03-15 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
* lib/fortran-modules.exp: New file which was forgotten in r185430. * lib/fortran-modules.exp: New file which was forgotten in r185430.
......
// PR c++/52582
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 ();
}
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