This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/37465] New: ctors never override virtual functions
- From: "mrs at apple dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 Sep 2008 18:02:43 -0000
- Subject: [Bug c++/37465] New: ctors never override virtual functions
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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