From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29594 invoked by alias); 1 Jan 2003 16:05:36 -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 29556 invoked by uid 61); 1 Jan 2003 16:05:34 -0000 Date: Wed, 01 Jan 2003 16:05:00 -0000 Message-ID: <20030101160534.29555.qmail@sources.redhat.com> To: gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org, xiao@dr.com From: neil@gcc.gnu.org Reply-To: neil@gcc.gnu.org, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org, xiao@dr.com, gcc-gnats@gcc.gnu.org Subject: Re: c++/765: Friend function can not have same name of a memeber function X-SW-Source: 2003-01/txt/msg00030.txt.bz2 List-Id: Synopsis: Friend function can not have same name of a memeber function State-Changed-From-To: analyzed->closed State-Changed-By: neil State-Changed-When: Wed Jan 1 08:05:33 2003 State-Changed-Why: This is fixed in 3.4; it gives the following correct diagnosis: /tmp/6807.ii:19: error: declaration of `operator-' as non-function /tmp/6807.ii:19: error: expected function-definition /tmp/6807.ii: In function `TForwardDeclarationBug operator-(const TForwardDeclarationBug&, const TForwardDeclarationBug&) [with T = int] ': /tmp/6807.ii:34: instantiated from here /tmp/6807.ii:5: error: `int TForwardDeclarationBug::a_' is private /tmp/6807.ii:28: error: within this context /tmp/6807.ii:5: error: `int TForwardDeclarationBug::a_' is private /tmp/6807.ii:28: error: within this context http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=765