From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2254 invoked by alias); 30 Apr 2003 20:46:01 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 2228 invoked by uid 71); 30 Apr 2003 20:46:01 -0000 Date: Wed, 30 Apr 2003 20:46:00 -0000 Message-ID: <20030430204601.2225.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: "Giovanni Bajo" Subject: Re: c++/4403: [2003-01-11]incorrect class becomes a friend in template Reply-To: "Giovanni Bajo" X-SW-Source: 2003-04/txt/msg01473.txt.bz2 List-Id: The following reply was made to PR c++/4403; it has been noted by GNATS. From: "Giovanni Bajo" To: , , , , Cc: Subject: Re: c++/4403: [2003-01-11]incorrect class becomes a friend in template Date: Wed, 30 Apr 2003 22:39:32 +0200 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=4403 For easier reference, a minimal snippet showing this is: -------------------------------- template struct A { struct F; }; template struct B : A { friend struct F; private: int priv; }; struct F { void func(void) { B b; b.priv = 0; } }; -------------------------------- pr4403.cpp: In member function `void F::func()': pr4403.cpp:13: error: `int B::priv' is private pr4403.cpp:21: error: within this context Reconfirmed on any GCC version up to mainline 20030430. Giovanni Bajo