summaryrefslogtreecommitdiff
path: root/gcc/cp/parser.h
diff options
context:
space:
mode:
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>2014-04-11 18:25:07 +0000
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>2014-04-11 18:25:07 +0000
commit4163a05c73dab8aff5bae05588947c74e20e4944 (patch)
tree6b34df289fc064532af23c0051a77abf3efd7d70 /gcc/cp/parser.h
parentac89b23944c4c344dfc4cc4603fb045af4360f58 (diff)
downloadgcc-4163a05c73dab8aff5bae05588947c74e20e4944.tar.gz
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@209315 138bc75d-0d04-0410-961f-82ee72b054a4
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 d558c607f4d..758c6df3c27 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. */