diff options
author | Mark Mitchell <mark@codesourcery.com> | 2000-05-31 16:39:19 +0000 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 2000-05-31 16:39:19 +0000 |
commit | 6bbf1598b61f9d6dd1f42cb59a9cd51780c65999 (patch) | |
tree | ab468350cfdd071d28002d537d6ee3d77b308f12 /gcc/cp/method.c | |
parent | 1b813bfea4a344623c32da63f0328c9f69083e31 (diff) | |
download | gcc-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.c | 10 |
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) |