Commit 608afcc5 by Jason Merrill Committed by Jason Merrill

re PR c++/5453 (Compiled program crash - inheritance/template/friend class problem)

        PR c++/5453
        * class.c (fixed_type_or_null): Fix thinko.

From-SVN: r49133
parent f893c16e
2002-01-23 Jason Merrill <jason@redhat.com>
PR c++/5453
* class.c (fixed_type_or_null): Fix thinko.
PR c++/3331
* init.c (resolve_offset_ref): Use build_indirect_ref.
......
......@@ -5318,7 +5318,7 @@ fixed_type_or_null (instance, nonnull, cdtorp)
switch (TREE_CODE (instance))
{
case INDIRECT_REF:
if (POINTER_TYPE_P (instance))
if (POINTER_TYPE_P (TREE_TYPE (instance)))
return NULL_TREE;
else
return fixed_type_or_null (TREE_OPERAND (instance, 0),
......
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