aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc')
-rw-r--r--gcc/cp/ChangeLog4
-rw-r--r--gcc/cp/parser.c2
2 files changed, 6 insertions, 0 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index b8687ba..1423822 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,6 +1,10 @@
2006-10-17 Mark Mitchell <mark@codesourcery.com>
PR c++/28261
+ * parser.c (cp_lexer_next_token_is_decl_specifier_keyword): Add
+ comment.
+
+ PR c++/28261
* parser.c (cp_lexer_next_token_is_decl_specifier_keyword): New
function.
(cp_parser_constructor_declarator_p): Use it.
diff --git a/gcc/cp/parser.c b/gcc/cp/parser.c
index 82f87f6..90993c9 100644
--- a/gcc/cp/parser.c
+++ b/gcc/cp/parser.c
@@ -505,6 +505,8 @@ cp_lexer_next_token_is_keyword (cp_lexer* lexer, enum rid keyword)
return cp_lexer_peek_token (lexer)->keyword == keyword;
}
+/* Return true if the next token is a keyword for a decl-specifier. */
+
static bool
cp_lexer_next_token_is_decl_specifier_keyword (cp_lexer *lexer)
{