aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/lex.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/cp/lex.c')
-rw-r--r--gcc/cp/lex.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/gcc/cp/lex.c b/gcc/cp/lex.c
index 89a90de..6cbc006 100644
--- a/gcc/cp/lex.c
+++ b/gcc/cp/lex.c
@@ -4541,8 +4541,6 @@ real_yylex ()
{ value = '}'; goto done; }
else if (c == '%' && c1 == ':')
{ value = '#'; goto done; }
- else if (c == ':' && c1 == '>')
- { value = ']'; goto done; }
nextchar = c1;
token_buffer[1] = 0;
@@ -4560,6 +4558,11 @@ real_yylex ()
value = SCOPE;
yylval.itype = 1;
}
+ else if (c == '>')
+ {
+ value = ']';
+ goto done;
+ }
else
{
nextchar = c;