public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c++/6011: compile error with overloaded methods
@ 2002-03-20  3:06 ply
  0 siblings, 0 replies; 2+ messages in thread
From: ply @ 2002-03-20  3:06 UTC (permalink / raw)
  To: gcc-gnats


>Number:         6011
>Category:       c++
>Synopsis:       compile error with overloaded methods
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    unassigned
>State:          open
>Class:          rejects-legal
>Submitter-Id:   net
>Arrival-Date:   Wed Mar 20 03:06:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Gergely Peli
>Release:        2.95.4, 3.0.2 still
>Organization:
>Environment:
Debian-i386
>Description:
I've encountered the following problem. When using overloaded methods (int and void * parameters), and overriding either of them in a descendant class, the other will be inaccessible. The attachment contains a one-page example. According to my c++ knowledge, this code should work. Excuse me, if it is corrected in 3.0.4.
>How-To-Repeat:
Try compiling it :-)
>Fix:
Using different method names. Annoying.
>Release-Note:
>Audit-Trail:
>Unformatted:


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: c++/6011: compile error with overloaded methods
@ 2002-05-20  7:37 lerdsuwa
  0 siblings, 0 replies; 2+ messages in thread
From: lerdsuwa @ 2002-05-20  7:37 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, nobody, ply

Synopsis: compile error with overloaded methods

State-Changed-From-To: open->closed
State-Changed-By: lerdsuwa
State-Changed-When: Mon May 20 07:37:29 2002
State-Changed-Why:
    Not a bug.  If you want both of them to be visible, add
    a using declaration.  For more information see section
    'Inheritance and Using-Declarations' in 'The C++ Programming
    Language'.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=6011


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-05-20 14:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-03-20  3:06 c++/6011: compile error with overloaded methods ply
2002-05-20  7:37 lerdsuwa

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).