public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/765: Friend function can not have same name of a memeber function
@ 2003-01-01 16:05 neil
0 siblings, 0 replies; 2+ messages in thread
From: neil @ 2003-01-01 16:05 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, nobody, xiao
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<T> operator-(const
TForwardDeclarationBug<T>&, const TForwardDeclarationBug<T>&) [with T = int]
':
/tmp/6807.ii:34: instantiated from here
/tmp/6807.ii:5: error: `int TForwardDeclarationBug<int>::a_' is private
/tmp/6807.ii:28: error: within this context
/tmp/6807.ii:5: error: `int TForwardDeclarationBug<int>::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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: c++/765: Friend function can not have same name of a memeber function
@ 2002-11-01 14:46 Wolfgang Bangerth
0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Bangerth @ 2002-11-01 14:46 UTC (permalink / raw)
To: nobody; +Cc: gcc-prs
The following reply was made to PR c++/765; it has been noted by GNATS.
From: Wolfgang Bangerth <bangerth@ticam.utexas.edu>
To: gcc-gnats@gcc.gnu.org
Cc:
Subject: Re: c++/765: Friend function can not have same name of a memeber
function
Date: Fri, 1 Nov 2002 16:46:29 -0600 (CST)
Does not ICE any more, but rather silently accepts the code.
W.
-------------------------------------------------------------------------
Wolfgang Bangerth email: bangerth@ticam.utexas.edu
www: http://www.ticam.utexas.edu/~bangerth
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-01-01 16:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-01 16:05 c++/765: Friend function can not have same name of a memeber function neil
-- strict thread matches above, loose matches on Subject: below --
2002-11-01 14:46 Wolfgang Bangerth
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).