diff options
author | Jason Merrill <jason@redhat.com> | 2016-08-04 12:06:17 -0400 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2016-08-04 12:06:17 -0400 |
commit | 6a7b92036be210a11657ce97a936a8548c425341 (patch) | |
tree | 79571d9ae93c399c9bb5811df44a004398233e6c /gcc/cp/parser.c | |
parent | 99676625e65ff23339115525f01a4a7a82e8ac3a (diff) | |
download | gcc-6a7b92036be210a11657ce97a936a8548c425341.zip gcc-6a7b92036be210a11657ce97a936a8548c425341.tar.gz gcc-6a7b92036be210a11657ce97a936a8548c425341.tar.bz2 |
Rename TYPE_ANONYMOUS_P to TYPE_UNNAMED_P.
* cp-tree.h (TYPE_UNNAMED_P): Rename from TYPE_ANONYMOUS_P.
(TYPE_WAS_UNNAMED): Rename from TYPE_WAS_ANONYMOUS.
* class.c, decl.c, decl2.c, error.c, lambda.c, mangle.c,
name-lookup.c, parser.c, pt.c, semantics.c, tree.c: Adjust.
From-SVN: r239137
Diffstat (limited to 'gcc/cp/parser.c')
-rw-r--r-- | gcc/cp/parser.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/gcc/cp/parser.c b/gcc/cp/parser.c index fdb0ab0..72a494d 100644 --- a/gcc/cp/parser.c +++ b/gcc/cp/parser.c @@ -17043,7 +17043,7 @@ cp_parser_enum_specifier (cp_parser* parser) bool nested_being_defined = false; bool new_value_list = false; bool is_new_type = false; - bool is_anonymous = false; + bool is_unnamed = false; tree underlying_type = NULL_TREE; cp_token *type_start_token = NULL; bool saved_colon_corrects_to_scope_p = parser->colon_corrects_to_scope_p; @@ -17137,10 +17137,10 @@ cp_parser_enum_specifier (cp_parser* parser) else { identifier = make_anon_name (); - is_anonymous = true; + is_unnamed = true; if (scoped_enum_p) error_at (type_start_token->location, - "anonymous scoped enum is not allowed"); + "unnamed scoped enum is not allowed"); } } pop_deferring_access_checks (); @@ -17321,9 +17321,9 @@ cp_parser_enum_specifier (cp_parser* parser) /* If the next token is not '}', then there are some enumerators. */ else if (cp_lexer_next_token_is (parser->lexer, CPP_CLOSE_BRACE)) { - if (is_anonymous && !scoped_enum_p) + if (is_unnamed && !scoped_enum_p) pedwarn (type_start_token->location, OPT_Wpedantic, - "ISO C++ forbids empty anonymous enum"); + "ISO C++ forbids empty unnamed enum"); } else cp_parser_enumerator_list (parser, type); @@ -17341,7 +17341,7 @@ cp_parser_enum_specifier (cp_parser* parser) and additional restrictions apply. */ if (cp_lexer_next_token_is (parser->lexer, CPP_SEMICOLON)) { - if (is_anonymous) + if (is_unnamed) error_at (type_start_token->location, "opaque-enum-specifier without name"); else if (nested_name_specifier) @@ -19347,9 +19347,9 @@ cp_parser_direct_declarator (cp_parser* parser, else if (IDENTIFIER_TYPENAME_P (unqualified_name)) sfk = sfk_conversion; else if (/* There's no way to declare a constructor - for an anonymous type, even if the type + for an unnamed type, even if the type got a name for linkage purposes. */ - !TYPE_WAS_ANONYMOUS (class_type) + !TYPE_WAS_UNNAMED (class_type) /* Handle correctly (c++/19200): struct S { |