diff options
author | Joe Buck <jbuck@synopsys.com> | 2002-12-14 00:09:28 +0000 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 2002-12-14 00:09:28 +0000 |
commit | bff5963509e39f46a253048622a64a5301d5acb8 (patch) | |
tree | 1a51e364f7ec94f254d07c686b4cef49adf94b88 /gcc/cp/parse.y | |
parent | bc18af8038069a9fe2a3c61717bdaf504f7166e2 (diff) | |
download | gcc-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.y | 2 |
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); } ; |