* cp-tree.h (CLASS_TYPE_P): Revise definition.

From-SVN: r21965
This commit is contained in:
Mark Mitchell 1998-08-25 11:34:22 +00:00 committed by Mark Mitchell
parent 56a65848be
commit b80c4d770a
2 changed files with 10 additions and 5 deletions

View File

@ -1,3 +1,7 @@
1998-08-25 Mark Mitchell <mark@markmitchell.com>
* cp-tree.h (CLASS_TYPE_P): Revise definition.
1998-08-25 Jason Merrill <jason@yorick.cygnus.com>
* decl.c (duplicate_decls): Don't complain about different

View File

@ -499,14 +499,15 @@ enum languages { lang_c, lang_cplusplus, lang_java };
#define TYPE_MAIN_DECL(NODE) (TYPE_STUB_DECL (TYPE_MAIN_VARIANT (NODE)))
/* Nonzero if T is a class (or struct or union) type. Also nonzero
for template type parameters. Despite its name, this macro has
nothing to do with the definition of aggregate given in the
standard. Think of this macro as MAYBE_CLASS_TYPE_P. */
for template type parameters and typename types. Despite its name,
this macro has nothing to do with the definition of aggregate given
in the standard. Think of this macro as MAYBE_CLASS_TYPE_P. */
#define IS_AGGR_TYPE(t) (TYPE_LANG_FLAG_5 (t))
/* Nonzero if T is a class type. Zero for template type parameters. */
/* Nonzero if T is a class type. Zero for template type parameters,
typename types, and so forth. */
#define CLASS_TYPE_P(t) \
(IS_AGGR_TYPE (t) && TREE_CODE (t) != TEMPLATE_TYPE_PARM)
(IS_AGGR_TYPE (t) && IS_AGGR_TYPE_CODE (TREE_CODE (t)))
#define IS_AGGR_TYPE_CODE(t) (t == RECORD_TYPE || t == UNION_TYPE)
#define IS_AGGR_TYPE_2(TYPE1,TYPE2) \