OSDN Git Service

* call.c (build_scoped_method_call): Fix thinko.
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 10 Jun 1998 10:43:41 +0000 (10:43 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 10 Jun 1998 10:43:41 +0000 (10:43 +0000)
(build_method_call): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@20411 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/cp/ChangeLog
gcc/cp/call.c

index fc4dca7..d264552 100644 (file)
@@ -1,3 +1,8 @@
+1998-06-10  Jason Merrill  <jason@yorick.cygnus.com>
+
+       * call.c (build_scoped_method_call): Fix thinko.
+       (build_method_call): Likewise.
+
 1998-06-10  Dave Brolley  <brolley@cygnus.com>
 
        * decl2.c (lang_decode_option): New argc/argv interface.
index 7a74213..3a82b30 100644 (file)
@@ -397,7 +397,7 @@ build_scoped_method_call (exp, basetype, name, parms)
        /* OK */;
       else if (TREE_CODE (tmp) == IDENTIFIER_NODE)
        {
-         if (IS_AGGR_TYPE (basetype) && tmp == constructor_name (basetype))
+         if (IS_AGGR_TYPE (basetype) && name == constructor_name (basetype))
            tmp = basetype;
          else
            tmp = get_type_value (tmp);
@@ -662,7 +662,7 @@ build_method_call (instance, name, parms, basetype_path, flags)
        tmp = name;
       else if (TREE_CODE (name) == IDENTIFIER_NODE)
        {
-         if (IS_AGGR_TYPE (basetype) && tmp == constructor_name (basetype))
+         if (IS_AGGR_TYPE (basetype) && name == constructor_name (basetype))
            tmp = basetype;
          else
            tmp = get_type_value (tmp);