This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

c++/6011: compile error with overloaded methods



>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:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]