From 4324833a1732f77c90309a8a2b3d5d4bed632d3e Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Wed, 10 Jun 1998 10:43:41 +0000 Subject: [PATCH] call.c (build_scoped_method_call): Fix thinko. * call.c (build_scoped_method_call): Fix thinko. (build_method_call): Likewise. From-SVN: r20411 --- gcc/cp/ChangeLog | 5 +++++ gcc/cp/call.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index fc4dca71fbd..d2645529501 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +1998-06-10 Jason Merrill + + * call.c (build_scoped_method_call): Fix thinko. + (build_method_call): Likewise. + 1998-06-10 Dave Brolley * decl2.c (lang_decode_option): New argc/argv interface. diff --git a/gcc/cp/call.c b/gcc/cp/call.c index 7a74213bc21..3a82b309f16 100644 --- a/gcc/cp/call.c +++ b/gcc/cp/call.c @@ -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); -- 2.30.2