public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/37465] New: ctors never override virtual functions
@ 2008-09-10 18:04 mrs at apple dot com
2008-09-10 18:29 ` [Bug c++/37465] " mrs at apple dot com
` (3 more replies)
0 siblings, 4 replies; 6+ messages in thread
From: mrs at apple dot com @ 2008-09-10 18:04 UTC (permalink / raw)
To: gcc-bugs
class A {
virtual int B() { return 0; }
};
class B: A {
B() { }
};
gives an error, but should compile (as gross as it is). I'm hoping there is a
prohibition against it, but didn't find one.
--
Summary: ctors never override virtual functions
Product: gcc
Version: 4.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: mrs at apple dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37465
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/37465] ctors never override virtual functions
2008-09-10 18:04 [Bug c++/37465] New: ctors never override virtual functions mrs at apple dot com
@ 2008-09-10 18:29 ` mrs at apple dot com
2008-09-14 4:55 ` pinskia at gcc dot gnu dot org
` (2 subsequent siblings)
3 siblings, 0 replies; 6+ messages in thread
From: mrs at apple dot com @ 2008-09-10 18:29 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from mrs at apple dot com 2008-09-10 18:28 -------
radr://6202462
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37465
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/37465] ctors never override virtual functions
2008-09-10 18:04 [Bug c++/37465] New: ctors never override virtual functions mrs at apple dot com
2008-09-10 18:29 ` [Bug c++/37465] " mrs at apple dot com
2008-09-14 4:55 ` pinskia at gcc dot gnu dot org
@ 2008-09-14 4:55 ` pinskia at gcc dot gnu dot org
2008-09-27 23:02 ` fang at csl dot cornell dot edu
3 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2008-09-14 4:55 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from pinskia at gcc dot gnu dot org 2008-09-14 04:54 -------
Confirmed, looks related to covariant returns.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37465
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/37465] ctors never override virtual functions
2008-09-10 18:04 [Bug c++/37465] New: ctors never override virtual functions mrs at apple dot com
2008-09-10 18:29 ` [Bug c++/37465] " mrs at apple dot com
@ 2008-09-14 4:55 ` pinskia at gcc dot gnu dot org
2008-09-14 4:55 ` pinskia at gcc dot gnu dot org
2008-09-27 23:02 ` fang at csl dot cornell dot edu
3 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2008-09-14 4:55 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from pinskia at gcc dot gnu dot org 2008-09-14 04:54 -------
Confirmed, looks related to covariant returns.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2008-09-14 04:54:06
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37465
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/37465] ctors never override virtual functions
2008-09-10 18:04 [Bug c++/37465] New: ctors never override virtual functions mrs at apple dot com
` (2 preceding siblings ...)
2008-09-14 4:55 ` pinskia at gcc dot gnu dot org
@ 2008-09-27 23:02 ` fang at csl dot cornell dot edu
3 siblings, 0 replies; 6+ messages in thread
From: fang at csl dot cornell dot edu @ 2008-09-27 23:02 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from fang at csl dot cornell dot edu 2008-09-27 23:01 -------
Ick.
Also fails 4.3.2, 4.0.1, 3.3.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37465
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/37465] ctors never override virtual functions
[not found] <bug-37465-4@http.gcc.gnu.org/bugzilla/>
@ 2012-01-05 1:03 ` paolo.carlini at oracle dot com
0 siblings, 0 replies; 6+ messages in thread
From: paolo.carlini at oracle dot com @ 2012-01-05 1:03 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37465
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC|gcc-bugs at gcc dot gnu.org |
Known to work| |4.6.3, 4.7.0
Resolution| |FIXED
Known to fail| |
--- Comment #5 from Paolo Carlini <paolo.carlini at oracle dot com> 2012-01-05 01:03:19 UTC ---
Fixed.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2012-01-05 1:03 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-09-10 18:04 [Bug c++/37465] New: ctors never override virtual functions mrs at apple dot com
2008-09-10 18:29 ` [Bug c++/37465] " mrs at apple dot com
2008-09-14 4:55 ` pinskia at gcc dot gnu dot org
2008-09-14 4:55 ` pinskia at gcc dot gnu dot org
2008-09-27 23:02 ` fang at csl dot cornell dot edu
[not found] <bug-37465-4@http.gcc.gnu.org/bugzilla/>
2012-01-05 1:03 ` paolo.carlini at oracle dot com
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).