This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/17920] add __attribute__((reimpl)) as a replacement for the (optional) virtual keyword for reimplementations of virtual functions
- From: "giovannibajo at libero dot it" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 11 Oct 2004 09:28:18 -0000
- Subject: [Bug c++/17920] add __attribute__((reimpl)) as a replacement for the (optional) virtual keyword for reimplementations of virtual functions
- References: <20041010085558.17920.mutz@kde.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From giovannibajo at libero dot it 2004-10-11 09:28 -------
(In reply to comment #4)
> I disagree with the notion that it is just a diagnostic related issue;
> because it comes with a semantics part. Let's not not disguise a
> language extension under the name of diagnostic improvement.
> It helps nobody.
I am not trying to, really.
In my view, the compilation unit will produce exactly the same object file,
whether attribute(reimpl) is implemented or not, used or not. The only
difference is that with attribute(reimpl) we might emit a warning iff the
method does not override another virtual method in the base class.
Why do you think there is a semantics part? Maybe I do not get it.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17920