diff options
Diffstat (limited to 'gcc/cp')
| -rw-r--r-- | gcc/cp/ChangeLog | 4 | ||||
| -rw-r--r-- | gcc/cp/parser.c | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index de5f284..485de2f 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,7 @@ +2005-07-22 Manfred Hollstein <mh@suse.com> + + * parser.c (cp_parser_declaration): Fix unitialised warnings. + 2005-07-21 Andrew Pinski <pinskia@physics.uc.edu> * class.c (build_base_path): Fix typo. diff --git a/gcc/cp/parser.c b/gcc/cp/parser.c index 324d5f1..fa46b25 100644 --- a/gcc/cp/parser.c +++ b/gcc/cp/parser.c @@ -6919,6 +6919,8 @@ 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; /* Get the high-water mark for the DECLARATOR_OBSTACK. */ p = obstack_alloc (&declarator_obstack, 0); |
