diff options
author | H.J. Lu <hongjiu.lu@intel.com> | 2009-04-10 14:30:48 +0000 |
---|---|---|
committer | H.J. Lu <hjl@gcc.gnu.org> | 2009-04-10 07:30:48 -0700 |
commit | 886b9612f2912fb6b9efb4b028371757d5df0908 (patch) | |
tree | b7c91514b6579b6fac8326e45e5dc8432d04c99c /gcc/cp | |
parent | 045ac3671593f6cb1a087a22cc9b8bff2b357198 (diff) | |
download | gcc-886b9612f2912fb6b9efb4b028371757d5df0908.zip gcc-886b9612f2912fb6b9efb4b028371757d5df0908.tar.gz gcc-886b9612f2912fb6b9efb4b028371757d5df0908.tar.bz2 |
parser.c (cp_parser_class_specifier): Remove the unused has_trailing_semicolon.
2008-04-10 H.J. Lu <hongjiu.lu@intel.com>
* parser.c (cp_parser_class_specifier): Remove the unused
has_trailing_semicolon.
From-SVN: r145911
Diffstat (limited to 'gcc/cp')
-rw-r--r-- | gcc/cp/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/cp/parser.c | 6 |
2 files changed, 5 insertions, 6 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 847b485..c70eed6 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +2008-04-10 H.J. Lu <hongjiu.lu@intel.com> + + * parser.c (cp_parser_class_specifier): Remove the unused + has_trailing_semicolon. + 2009-04-10 Manuel López-Ibáñez <manu@gcc.gnu.org> PR c++/20118 diff --git a/gcc/cp/parser.c b/gcc/cp/parser.c index 68c0ef4..e942635 100644 --- a/gcc/cp/parser.c +++ b/gcc/cp/parser.c @@ -14948,10 +14948,8 @@ cp_parser_class_name (cp_parser *parser, static tree cp_parser_class_specifier (cp_parser* parser) { - cp_token *token; tree type; tree attributes = NULL_TREE; - int has_trailing_semicolon; bool nested_name_specifier_p; unsigned saved_num_template_parameter_lists; bool saved_in_function_body; @@ -15029,10 +15027,6 @@ cp_parser_class_specifier (cp_parser* parser) /* Look for the trailing `}'. */ cp_parser_require (parser, CPP_CLOSE_BRACE, "%<}%>"); - /* We get better error messages by noticing a common problem: a - missing trailing `;'. */ - token = cp_lexer_peek_token (parser->lexer); - has_trailing_semicolon = (token->type == CPP_SEMICOLON); /* Look for trailing attributes to apply to this class. */ if (cp_parser_allow_gnu_extensions_p (parser)) attributes = cp_parser_attributes_opt (parser); |