call.c (build_scoped_method_call): Fix thinko.

* call.c (build_scoped_method_call): Fix thinko.
	(build_method_call): Likewise.

From-SVN: r20411
This commit is contained in:
Jason Merrill 1998-06-10 10:43:41 +00:00 committed by Jason Merrill
parent cff559bcf0
commit 4324833a17
2 changed files with 7 additions and 2 deletions

View 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.

View 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);