summaryrefslogtreecommitdiff
path: root/gcc/cp/parse.y
diff options
context:
space:
mode:
authorJoe Buck <jbuck@synopsys.com>2002-12-14 00:09:28 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>2002-12-14 00:09:28 +0000
commitbff5963509e39f46a253048622a64a5301d5acb8 (patch)
tree1a51e364f7ec94f254d07c686b4cef49adf94b88 /gcc/cp/parse.y
parentbc18af8038069a9fe2a3c61717bdaf504f7166e2 (diff)
downloadgcc-bff5963509e39f46a253048622a64a5301d5acb8.tar.gz
parse.y (class_head_defn): Set CLASSTYPE_DECLARED_CLASS for anonymous structs.
* parse.y (class_head_defn): Set CLASSTYPE_DECLARED_CLASS for anonymous structs. From-SVN: r60110
Diffstat (limited to 'gcc/cp/parse.y')
-rw-r--r--gcc/cp/parse.y2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/cp/parse.y b/gcc/cp/parse.y
index 5328ed3a588..8b1f1e6124e 100644
--- a/gcc/cp/parse.y
+++ b/gcc/cp/parse.y
@@ -2521,6 +2521,8 @@ class_head_defn:
current_aggr = $1;
$$.t = TYPE_MAIN_DECL (xref_tag ($1, make_anon_name (), 0));
$$.new_type_flag = 0;
+ CLASSTYPE_DECLARED_CLASS (TREE_TYPE ($$.t))
+ = $1 == class_type_node;
yyungetc ('{', 1);
}
;