summaryrefslogtreecommitdiff
path: root/gcc/cp/lex.c
diff options
context:
space:
mode:
authorgdr <gdr@138bc75d-0d04-0410-961f-82ee72b054a4>2000-06-09 08:40:02 +0000
committergdr <gdr@138bc75d-0d04-0410-961f-82ee72b054a4>2000-06-09 08:40:02 +0000
commit0169d7877f5dcb4e89f61da01c447924c479c85c (patch)
tree5a23ddb1e813fbb463941cccf637ea179cc30d8e /gcc/cp/lex.c
parentcd130555d0f8d86fbd7e9e88511d59533ec5c01b (diff)
downloadgcc-0169d7877f5dcb4e89f61da01c447924c479c85c.tar.gz
2000-06-09 Gabriel Dos Reis <gdr@codesourcery.com>
* lex.c (DEF_OPERATOR): Say `operator@' -not- `operator @' whenever @ is a symbolic name. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@34465 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/lex.c')
-rw-r--r--gcc/cp/lex.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/cp/lex.c b/gcc/cp/lex.c
index d5f8cd4d059..9df7b1c6e3e 100644
--- a/gcc/cp/lex.c
+++ b/gcc/cp/lex.c
@@ -468,9 +468,9 @@ init_operators ()
#define DEF_OPERATOR(NAME, CODE, MANGLING, ARITY, ASSN_P) \
my_friendly_assert ((strlen ("operator ") + strlen (NAME) + 1 \
- <= 256), \
+ + ISALPHA (NAME[0]) <= 256), \
20000526); \
- sprintf (buffer, "operator %s", NAME); \
+ sprintf (buffer, ISALPHA (NAME[0]) ? "operator %s" : "operator%s", NAME); \
identifier = get_identifier (buffer); \
IDENTIFIER_OPNAME_P (identifier) = 1; \
\