From 83c4eacf4a90cd5a19d2ec9e3d367368fce3ceab Mon Sep 17 00:00:00 2001 From: jason Date: Thu, 12 Apr 2001 14:15:48 +0000 Subject: * cp-tree.h (TYPE_LINKAGE_IDENTIFIER): New macro. (TYPE_ANONYMOUS_P): New macro. (TAGGED_TYPE_P): New macro. * decl.c (check_tag_decl): Use TYPE_ANONYMOUS_P. (grokfndecl, grokvardecl, grokdeclarator): Likewise. * tree.c (no_linkage_helper): Likewise. * semantics.c (begin_class_definition): Likewise. * pt.c (convert_template_argument): Likewise. * lex.c (check_for_missing_semicolon): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@41303 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/cp/lex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/cp/lex.c') diff --git a/gcc/cp/lex.c b/gcc/cp/lex.c index ef9314ccefa..5120f204ed3 100644 --- a/gcc/cp/lex.c +++ b/gcc/cp/lex.c @@ -1011,7 +1011,7 @@ check_for_missing_semicolon (type) && yychar != SELFNAME) || yychar == 0 /* EOF */) { - if (ANON_AGGRNAME_P (TYPE_IDENTIFIER (type))) + if (TYPE_ANONYMOUS_P (type)) error ("semicolon missing after %s declaration", TREE_CODE (type) == ENUMERAL_TYPE ? "enum" : "struct"); else -- cgit v1.2.1