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: "gdr at cs dot tamu dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 Oct 2004 22:46:40 -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 gdr at cs dot tamu dot edu 2004-10-10 22:46 -------
Subject: Re: add __attribute__((reimpl)) as a replacement for the (optional) virtual keyword for reimplementations of virtual functions
"giovannibajo at libero dot it" <gcc-bugzilla@gcc.gnu.org> writes:
| As far as I can tell, this is just a hint for the compiler to
| generate better diagnostic. Pretty much like attribute(sentinel) for
| instance: we just give the compiler more information, we are not
| modifying the semantic of a program.
|
| I'm actually in favor of this PR so I will confirm this. This is not an
| extension as in we are modifying the language semantic, adding
| strange features or whatnot.
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.
-- Gaby
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17920