+2001-04-04 Alexandre Petit-Bianco <apbianco@redhat.com>
+
+ * parse.y (resolve_qualified_expression_name): Pass field's
+ DECL_CONTEXT to `not_accessible_p.'
+ (not_accessible_p): Changed parameters order in `inherits_from_p'
+ invokation.
+
2001-03-27 Andrew Haley <aph@cambridge.redhat.com>
* lang-options.h: Add flag_check_references.
/* Check on accessibility here */
if (not_accessible_p (current_class, field_decl,
- TREE_TYPE (decl), from_super))
+ DECL_CONTEXT (field_decl), from_super))
{
parse_error_context
(qual_wfl,
/* If where is active, access was made through a
qualifier. Access is granted if the type of the qualifier is
or is a sublass of the type the access made from (6.6.2.1.) */
- if (where && !inherits_from_p (where, reference))
+ if (where && !inherits_from_p (reference, where))
return 1;
/* Otherwise, access is granted if occuring from the class where