aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/parser.h
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2014-04-11 14:25:07 -0400
committerJason Merrill <jason@gcc.gnu.org>2014-04-11 14:25:07 -0400
commit636201978b356a45b8626fc75fc63c8c2747dce5 (patch)
tree6b34df289fc064532af23c0051a77abf3efd7d70 /gcc/cp/parser.h
parent1c982d13138ee4518db10b6fbe02fa32d09ab51e (diff)
downloadgcc-636201978b356a45b8626fc75fc63c8c2747dce5.zip
gcc-636201978b356a45b8626fc75fc63c8c2747dce5.tar.gz
gcc-636201978b356a45b8626fc75fc63c8c2747dce5.tar.bz2
parser.h (struct cp_token): Rename ambiguous_p to error_reported.
* parser.h (struct cp_token): Rename ambiguous_p to error_reported. * parser.c: Adjust. (cp_lexer_get_preprocessor_token): Always clear it. (cp_parser_lambda_expression): Use it to avoid duplicate diagnostics. From-SVN: r209315
Diffstat (limited to 'gcc/cp/parser.h')
-rw-r--r--gcc/cp/parser.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/cp/parser.h b/gcc/cp/parser.h
index d558c60..758c6df 100644
--- a/gcc/cp/parser.h
+++ b/gcc/cp/parser.h
@@ -51,10 +51,10 @@ typedef struct GTY (()) cp_token {
ENUM_BITFIELD (pragma_kind) pragma_kind : 6;
/* True if this token is from a context where it is implicitly extern "C" */
BOOL_BITFIELD implicit_extern_c : 1;
- /* True for a CPP_NAME token that is not a keyword (i.e., for which
- KEYWORD is RID_MAX) iff this name was looked up and found to be
- ambiguous. An error has already been reported. */
- BOOL_BITFIELD ambiguous_p : 1;
+ /* True if an error has already been reported for this token, such as a
+ CPP_NAME token that is not a keyword (i.e., for which KEYWORD is
+ RID_MAX) iff this name was looked up and found to be ambiguous. */
+ BOOL_BITFIELD error_reported : 1;
/* True for a token that has been purged. If a token is purged,
it is no longer a valid token and it should be considered
deleted. */