re PR c++/5453 (Compiled program crash - inheritance/template/friend class problem)
authorJason Merrill <jason@redhat.com>
Wed, 23 Jan 2002 12:45:30 +0000 (07:45 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Wed, 23 Jan 2002 12:45:30 +0000 (07:45 -0500)
        PR c++/5453
        * class.c (fixed_type_or_null): Fix thinko.

From-SVN: r49133

gcc/cp/ChangeLog
gcc/cp/class.c

index 11d77ed87799fe2c89ab2f449cb6eca25e84b95f..1d8108b43093515c0f60a01500bb2a0db81823d5 100644 (file)
@@ -1,5 +1,8 @@
 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.
 
index f9d597cafb755c212e5ff46659deaf7fb897adb3..a97dd0ee92cb9abd7f2248c099c295786f84b289 100644 (file)
@@ -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),