public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c++/6373: Reimplementation of virtual functions in the same class works (should normally not)gcc version 2.95.3 20010315 (SuSE)
@ 2002-04-19 6:26 pietzowski
0 siblings, 0 replies; 3+ messages in thread
From: pietzowski @ 2002-04-19 6:26 UTC (permalink / raw)
To: gcc-gnats
>Number: 6373
>Category: c++
>Synopsis: Reimplementation of virtual functions in the same class works (should normally not)gcc version 2.95.3 20010315 (SuSE)
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Apr 19 06:26:02 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: Andreas Pietzowski
>Release: gcc version 2.95.3 20010315 (SuSE)
>Organization:
>Environment:
SuSE-Linux 8.0
>Description:
Hi,
I program code for KDE with Qt under Linux. Qt has e.g a class QTable and in there they implemented this method
virtual void QTable::activateNextCell(){
// some code here
}
Now it is possible that I write in my code:
void QTable::activateNextCell(){
// some other code
}
and my reimplementation compiles and is used by the executable. Under Windows with Borlans bcc it isn't used.
The guys from Trolltech (the founders of Qt) told me I should report this behaviour to you because a compiler should never allow a reimplementation of a method of the same class (only if you create a sub-class).
Could you follow me? Was it enough info? If not please contact me via email and I'll try to explain it more detailed.
>How-To-Repeat:
>Fix:
A warning would be enough I think because the behavior of a compiler is not defined in that case I think. And prehaps don't use the reimplemented code because there is already an original implementation.
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: c++/6373: Reimplementation of virtual functions in the same class works (should normally not)gcc version 2.95.3 20010315 (SuSE)
@ 2002-04-22 14:19 rodrigc
0 siblings, 0 replies; 3+ messages in thread
From: rodrigc @ 2002-04-22 14:19 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, nobody, pietzowski
Synopsis: Reimplementation of virtual functions in the same class works (should normally not)gcc version 2.95.3 20010315 (SuSE)
State-Changed-From-To: open->feedback
State-Changed-By: rodrigc
State-Changed-When: Mon Apr 22 14:19:49 2002
State-Changed-Why:
Read: http://gcc.gnu.org/bugs.html and submit preprocessed
source.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=6373
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: c++/6373: Reimplementation of virtual functions in the same class works (should normally not)gcc version 2.95.3 20010315 (SuSE)
@ 2002-12-06 15:07 reichelt
0 siblings, 0 replies; 3+ messages in thread
From: reichelt @ 2002-12-06 15:07 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, nobody, pietzowski
Synopsis: Reimplementation of virtual functions in the same class works (should normally not)gcc version 2.95.3 20010315 (SuSE)
State-Changed-From-To: feedback->closed
State-Changed-By: reichelt
State-Changed-When: Fri Dec 6 15:07:53 2002
State-Changed-Why:
No feedback for more than 6 months.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=6373
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2002-12-06 23:07 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-04-19 6:26 c++/6373: Reimplementation of virtual functions in the same class works (should normally not)gcc version 2.95.3 20010315 (SuSE) pietzowski
2002-04-22 14:19 rodrigc
2002-12-06 15:07 reichelt
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).