Commit 550f100c by Jason Merrill Committed by Jason Merrill

re PR middle-end/17525 (ICE in emit_move_insn (non-BLKmode arg))

        PR middle-end/17525
        * class.c (build_base_field): Set TYPE_MODE.

From-SVN: r88270
parent aa24864c
2004-09-28 Jason Merrill <jason@redhat.com>
PR middle-end/17525
* class.c (build_base_field): Set TYPE_MODE.
2004-09-28 Roger Sayle <roger@eyesopen.com>
PR driver/17537
......
......@@ -3563,6 +3563,7 @@ build_base_field (record_layout_info rli, tree binfo,
DECL_SIZE_UNIT (decl) = CLASSTYPE_SIZE_UNIT (basetype);
DECL_ALIGN (decl) = CLASSTYPE_ALIGN (basetype);
DECL_USER_ALIGN (decl) = CLASSTYPE_USER_ALIGN (basetype);
DECL_MODE (decl) = TYPE_MODE (basetype);
DECL_IGNORED_P (decl) = 1;
DECL_FIELD_IS_BASE (decl) = 1;
......
// PR middle-end/17525
struct A
{
~A();
int a;
};
struct B : public A
{
virtual ~B();
};
void run (B& b, B& b1)
{
b1 = 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