Commit 4324833a by Jason Merrill Committed by Jason Merrill

call.c (build_scoped_method_call): Fix thinko.

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

From-SVN: r20411
parent cff559bc
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> 1998-06-10 Dave Brolley <brolley@cygnus.com>
* decl2.c (lang_decode_option): New argc/argv interface. * decl2.c (lang_decode_option): New argc/argv interface.
......
...@@ -397,7 +397,7 @@ build_scoped_method_call (exp, basetype, name, parms) ...@@ -397,7 +397,7 @@ build_scoped_method_call (exp, basetype, name, parms)
/* OK */; /* OK */;
else if (TREE_CODE (tmp) == IDENTIFIER_NODE) 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; tmp = basetype;
else else
tmp = get_type_value (tmp); tmp = get_type_value (tmp);
...@@ -662,7 +662,7 @@ build_method_call (instance, name, parms, basetype_path, flags) ...@@ -662,7 +662,7 @@ build_method_call (instance, name, parms, basetype_path, flags)
tmp = name; tmp = name;
else if (TREE_CODE (name) == IDENTIFIER_NODE) 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; tmp = basetype;
else else
tmp = get_type_value (tmp); tmp = get_type_value (tmp);
......
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