oops
authorJason Merrill <jason@gcc.gnu.org>
Tue, 3 Mar 1998 01:44:37 +0000 (20:44 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 3 Mar 1998 01:44:37 +0000 (20:44 -0500)
From-SVN: r18378

gcc/cp/class.c

index 22062e9c2ea8deebdf6fd54f72a757442f89620a..da2f41905261a3c7a07dbf1ccfe0cccac3a8264a 100644 (file)
@@ -5182,7 +5182,7 @@ instantiate_type (lhstype, rhs, complain)
                        save_elem = instantiate_template (elem, t);
                        /* Check the return type.  */
                        if (! comptypes (TREE_TYPE (lhstype),
-                                        TREE_TYPE (TREE_TYPE (t)), 1))
+                                        TREE_TYPE (TREE_TYPE (save_elem)), 1))
                          save_elem = 0;
                      }
                  }