parser.c (cp_lexer_get_preprocessor_token): Initialize keyword field.

* parser.c (cp_lexer_get_preprocessor_token): Initialize keyword
	field.

From-SVN: r106907
This commit is contained in:
Mark Mitchell 2005-11-15 00:04:43 +00:00 committed by Mark Mitchell
parent 63752e29bb
commit 37edf0a6c4
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2005-11-14 Mark Mitchell <mark@codesourcery.com>
* parser.c (cp_lexer_get_preprocessor_token): Initialize keyword
field.
2005-11-14 Jason Merrill <jason@redhat.com>
PR c++/24580

View File

@ -420,7 +420,10 @@ cp_lexer_get_preprocessor_token (cp_lexer *lexer ATTRIBUTE_UNUSED ,
token->value = ridpointers[token->keyword];
}
else
token->ambiguous_p = false;
{
token->ambiguous_p = false;
token->keyword = RID_MAX;
}
}
/* Handle Objective-C++ keywords. */
else if (token->type == CPP_AT_NAME)