* parse.y (class_head_defn): Set CLASSTYPE_DECLARED_CLASS for
anonymous structs.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@59647
138bc75d-0d04-0410-961f-
82ee72b054a4
+2002-11-29 Joe Buck <jbuck@synopsys.com>
+
+ * parse.y (class_head_defn): Set CLASSTYPE_DECLARED_CLASS for
+ anonymous structs.
+
2002-11-29 Mark Mitchell <mark@codesourcery.com>
* class.c (walk_subobject_offsets): Recur on binfos as well as on
make_anon_name (),
0));
$$.new_type_flag = 0;
+ CLASSTYPE_DECLARED_CLASS (TREE_TYPE ($$.t))
+ = $1 == class_type_node;
yyungetc ('{', 1);
}
;
+2002-11-29 Joe Buck <jbuck@synopsys.com>
+
+ * g++.dg/lookup/anon2.C: New test.
+
2002-11-28 Kazu Hirata <kazu@cs.umass.edu>
* gcc.c-torture/execute/strct-varg-1.x: Remove xfail on the
--- /dev/null
+// { dg-do compile }
+// { dg-options "" }
+
+class { int i; } a; // { dg-error "private" }
+void foo() { a.i; } // { dg-error "context" }
+