aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/pt.c
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2001-04-12 10:15:48 -0400
committerJason Merrill <jason@gcc.gnu.org>2001-04-12 10:15:48 -0400
commit1951a1b6ec34409492b954768578eb6d94b8a784 (patch)
tree2f075aa812cbe41c0cdc490bd611f2c2b21d8a28 /gcc/cp/pt.c
parentd93aa33514f7b0ccf084c7284802f079d41ea061 (diff)
downloadgcc-1951a1b6ec34409492b954768578eb6d94b8a784.zip
gcc-1951a1b6ec34409492b954768578eb6d94b8a784.tar.gz
gcc-1951a1b6ec34409492b954768578eb6d94b8a784.tar.bz2
cp-tree.h (TYPE_LINKAGE_IDENTIFIER): New macro.
* 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. From-SVN: r41303
Diffstat (limited to 'gcc/cp/pt.c')
-rw-r--r--gcc/cp/pt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c
index 24bdff4..ac88bec 100644
--- a/gcc/cp/pt.c
+++ b/gcc/cp/pt.c
@@ -3389,7 +3389,7 @@ convert_template_argument (parm, arg, args, complain, i, in_decl)
tree t = no_linkage_check (val);
if (t)
{
- if (ANON_AGGRNAME_P (TYPE_IDENTIFIER (t)))
+ if (TYPE_ANONYMOUS_P (t))
cp_pedwarn
("template-argument `%T' uses anonymous type", val);
else