summaryrefslogtreecommitdiff
path: root/gcc/cp/method.c
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>2000-05-31 16:39:19 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>2000-05-31 16:39:19 +0000
commit6bbf1598b61f9d6dd1f42cb59a9cd51780c65999 (patch)
treeab468350cfdd071d28002d537d6ee3d77b308f12 /gcc/cp/method.c
parent1b813bfea4a344623c32da63f0328c9f69083e31 (diff)
downloadgcc-6bbf1598b61f9d6dd1f42cb59a9cd51780c65999.tar.gz
decl.c (build_cp_library_fn): Set DECL_CONTEXT.
* decl.c (build_cp_library_fn): Set DECL_CONTEXT. * method.c (mangle_expression): Adjust test for legal expression operators. * pt.c (instantiate_decl): Save and restore the local specializations list. From-SVN: r34302
Diffstat (limited to 'gcc/cp/method.c')
-rw-r--r--gcc/cp/method.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/gcc/cp/method.c b/gcc/cp/method.c
index 13d627ad17b..1981e77f640 100644
--- a/gcc/cp/method.c
+++ b/gcc/cp/method.c
@@ -523,13 +523,11 @@ mangle_expression (value)
const char *name;
name = operator_name_info[TREE_CODE (value)].mangled_name;
- my_friendly_assert (name != NULL, 0);
- if (name[0] != '_' || name[1] != '_')
+ if (name == NULL)
/* On some erroneous inputs, we can get here with VALUE a
- LOOKUP_EXPR. In that case, the NAME will be the
- identifier for "<invalid operator>". We must survive
- this routine in order to issue a sensible error
- message, so we fall through to the case below. */
+ LOOKUP_EXPR. We must survive this routine in order to issue
+ a sensible error message, so we fall through to the case
+ below. */
goto bad_value;
for (i = 0; i < operands; ++i)