diff options
author | Gabriel Dos Reis <gdr@integrable-solutions.net> | 2005-12-01 23:10:27 +0000 |
---|---|---|
committer | Gabriel Dos Reis <gdr@gcc.gnu.org> | 2005-12-01 23:10:27 +0000 |
commit | 728cdd0872eb752c12519e4e6c0b4f9fa5d226e1 (patch) | |
tree | ef5963bd4892fd2ee3c9cf51df30c1e7dde3259f /gcc | |
parent | 6cc5062afa0fd3afe5be1633098f39400e9380aa (diff) | |
download | gcc-728cdd0872eb752c12519e4e6c0b4f9fa5d226e1.zip gcc-728cdd0872eb752c12519e4e6c0b4f9fa5d226e1.tar.gz gcc-728cdd0872eb752c12519e4e6c0b4f9fa5d226e1.tar.bz2 |
parser.c (cp_parser_declaration): Set token2.type to CPP_EOF, not RID_MAX.
* parser.c (cp_parser_declaration): Set token2.type to CPP_EOF,
not RID_MAX.
From-SVN: r107838
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/cp/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/cp/parser.c | 5 |
2 files changed, 9 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index dcd0d3f..80c24dd 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +2005-12-01 Gabriel Dos Reis <gdr@integrable-solutions.net> + + * parser.c (cp_parser_declaration): Set token2.type to CPP_EOF, + not RID_MAX. + 2005-11-30 Jason Merrill <jason@redhat.com> PR c++/21123 diff --git a/gcc/cp/parser.c b/gcc/cp/parser.c index 0ea0f93..daec37d 100644 --- a/gcc/cp/parser.c +++ b/gcc/cp/parser.c @@ -6914,7 +6914,10 @@ cp_parser_declaration (cp_parser* parser) if (token1.type != CPP_EOF) token2 = *cp_lexer_peek_nth_token (parser->lexer, 2); else - token2.type = token2.keyword = RID_MAX; + { + token2.type = CPP_EOF; + token2.keyword = RID_MAX; + } /* Get the high-water mark for the DECLARATOR_OBSTACK. */ p = obstack_alloc (&declarator_obstack, 0); |