This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] C++0x, warnings for uses of override/final in non-c++0x mode, add __final for non-c++0x mode


On 22 July 2011 22:43, Jason Merrill <jason@redhat.com> wrote:
> On 07/21/2011 01:39 PM, Ville Voutilainen wrote:
>> This one seems to work...
> Looks good. ?ChangeLogs?
> Jason

In the first patch-mail that had the borken test-patch. Repasted:

2011-07-21 Ville Voutilainen <ville.voutilainen@gmail.com>
<ville.voutilainen@symbio.com>
          Warn about the use of final/override in non-c++0x mode, and
add __final for non-c++0x mode.
          * cp-tree.h (cpp0x_warn_str): Add CPP0X_OVERRIDE_CONTROLS.
          * error.c (maybe_warn_cpp0x): Adjust.
          * parser.c (cp_parser_virt_specifier_seq_opt): Use it. Add
'__final' as a non-c++0x alternative for 'final'.
          * override1.C: This test should use c++0x mode.
          * override3.C: New. Test the diagnostics in c++98 mode.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]