OSDN Git Service

* parser.c (cp_lexer_peek_token, cp_lexer_consume_token):
authorzack <zack@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 21 Sep 2004 20:46:57 +0000 (20:46 +0000)
committerzack <zack@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 21 Sep 2004 20:46:57 +0000 (20:46 +0000)
commit3986d990c44e96f924dedb4efb205f3946d206f8
tree0d0806456056608d40bf64ac3c0d583809bceb3c
parent99caba0fadc1a32a65b64a49df1704d39957bf6e
* parser.c (cp_lexer_peek_token, cp_lexer_consume_token):
Don't handle CPP_PRAGMA tokens specially.
(cp_lexer_handle_pragma): Use cp_lexer_consume_token.  Don't
purge the token; do clear token->value after processing.  Add
assertion at beginning that token->value is nonzero.
(cp_parser_statement, cp_parser_declaration_seq_opt): Handle
CPP_PRAGMA as a full statement or declaration in its own right.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87822 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/parser.c