don't bother checking access restrictions in class_ivar_expr as

class_find_ivar will catch them when the generated self.ivar is `parsed'.
This commit is contained in:
Bill Currie 2003-05-13 01:30:01 +00:00
parent 8eced18ab2
commit 1ea1a2f529

View file

@ -383,11 +383,6 @@ class_ivar_expr (class_type_t *class_type, const char *name)
} }
if (!ivar) if (!ivar)
return 0; return 0;
if (ivar->visibility == vis_private) {
error (0, "%s.%s is not accessable here",
class->name, name);
return 0;
}
return binary_expr ('.', new_name_expr ("self"), new_name_expr (name)); return binary_expr ('.', new_name_expr ("self"), new_name_expr (name));
} }