* c-exp.y (yylex): Fix a bug in template scanning.

This commit is contained in:
Kung Hsu 1994-11-16 00:21:16 +00:00
parent 2d4838fe0d
commit e38e7f47a8
2 changed files with 10 additions and 1 deletions

View File

@ -1,3 +1,7 @@
Tue Nov 15 16:18:52 1994 Kung Hsu (kung@mexican.cygnus.com)
* c-exp.y (yylex): Fix a bug in template scanning.
Tue Nov 15 14:25:47 1994 Stan Shebs (shebs@andros.cygnus.com)
* i386-stub.c, m68k-stub.c, sparc-stub.c, sparcl-stub.c: Mask out

View File

@ -1366,7 +1366,12 @@ yylex ()
|| (c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z') || c == '<');)
{
if (c == '<')
while (tokstart[++namelen] != '>');
{
int i = namelen;
while (tokstart[++i] && tokstart[i] != '>');
if (tokstart[i] == '>')
namelen = i;
}
c = tokstart[++namelen];
}