* search.c (compute_access): Handle protected constructors in derived
classes as accessible.
From-SVN: r17670
+Thu Feb 5 14:38:23 1998 Mike Stump <mrs@wrs.com>
+
+ * search.c (compute_access): Handle protected constructors in derived
+ classes as accessible.
+
Wed Feb 4 01:26:49 1998 Jason Merrill <jason@yorick.cygnus.com>
* expr.c (cplus_expand_expr, PCC_STATIC_STRUCT_RETURN code):
else if (TREE_PROTECTED (field))
{
if (current_class_type
- && static_mem
+ && (static_mem || DECL_CONSTRUCTOR_P (field))
&& ACCESSIBLY_DERIVED_FROM_P (context, current_class_type))
PUBLIC_RETURN;
else