diff options
author | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-04-12 14:15:48 +0000 |
---|---|---|
committer | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-04-12 14:15:48 +0000 |
commit | 83c4eacf4a90cd5a19d2ec9e3d367368fce3ceab (patch) | |
tree | 2f075aa812cbe41c0cdc490bd611f2c2b21d8a28 /gcc/cp/semantics.c | |
parent | 541cc4f0d314e50b300e841be04bf194faa8529b (diff) | |
download | gcc-83c4eacf4a90cd5a19d2ec9e3d367368fce3ceab.tar.gz |
* 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
Diffstat (limited to 'gcc/cp/semantics.c')
-rw-r--r-- | gcc/cp/semantics.c | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/gcc/cp/semantics.c b/gcc/cp/semantics.c index 9295564cad4..a6e13ec0f78 100644 --- a/gcc/cp/semantics.c +++ b/gcc/cp/semantics.c @@ -1860,16 +1860,12 @@ begin_class_definition (t) /* Reset the interface data, at the earliest possible moment, as it might have been set via a class foo; before. */ - { - tree name = TYPE_IDENTIFIER (t); - - if (! ANON_AGGRNAME_P (name)) - { - CLASSTYPE_INTERFACE_ONLY (t) = interface_only; - SET_CLASSTYPE_INTERFACE_UNKNOWN_X - (t, interface_unknown); - } - } + if (! TYPE_ANONYMOUS_P (t)) + { + CLASSTYPE_INTERFACE_ONLY (t) = interface_only; + SET_CLASSTYPE_INTERFACE_UNKNOWN_X + (t, interface_unknown); + } reset_specialization(); /* Make a declaration for this class in its own scope. */ |