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:
parent
cff559bcf0
commit
4324833a17
@ -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.
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user