From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22677 invoked by alias); 1 Jun 2004 07:34:52 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 22629 invoked by alias); 1 Jun 2004 07:34:50 -0000 Date: Tue, 01 Jun 2004 07:34:00 -0000 Message-ID: <20040601073450.22628.qmail@sourceware.org> From: "cvs-commit at gcc dot gnu dot org" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20020920175601.7993.lminder@gmx.net> References: <20020920175601.7993.lminder@gmx.net> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug objc/7993] [3.4/3.5 regression] private variables cannot be shadowed in subclasses X-Bugzilla-Reason: CC X-SW-Source: 2004-06/txt/msg00044.txt.bz2 List-Id: ------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-06-01 07:34 ------- Subject: Bug 7993 CVSROOT: /cvs/gcc Module name: gcc Branch: gcc-3_4-branch Changes by: zack@gcc.gnu.org 2004-06-01 07:34:40 Modified files: gcc : ChangeLog gcc/objc : objc-act.c gcc/testsuite : ChangeLog Added files: gcc/testsuite/objc.dg: private-1.m private-2.m Log message: 2004-06-01 Nicola Pero Fix PR objc/7993: * objc-act.c (is_private): Do not emit the 'instance variable %s is declared private' error. (is_public): Emit the error after calling is_private. (lookup_objc_ivar): If the instance variable is private, return 0 - the instance variable is invisible here. testsuite: * objc.dg/private-1.m, objc-dg/private-2.m: New testcases. Patches: http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=2.2326.2.463&r2=2.2326.2.464 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/objc/objc-act.c.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.202.4.1&r2=1.202.4.2 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.3389.2.193&r2=1.3389.2.194 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/objc.dg/private-1.m.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=NONE&r2=1.1.8.1 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/objc.dg/private-2.m.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=NONE&r2=1.1.8.1 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=7993