On Tue, 2017-05-02 at 08:05 +0200, Volker Reichelt wrote: > Hi, > > the following patch fixes two typos in error messages of the C++ > parser > (which have gone unnoticed since GCC 3.4.0). > > Bootstrapped and regtested on x86_64-pc-linux-gnu. > OK for trunk? > Should this go also to GCC 7.2? > > Regards, > Volker > > > 2017-05-01 Volker Reichelt <v.reich...@netcologne.de> > > * parser.c (cp_parser_base_specifier): Fix typos in error > messages. > > Index: gcc/cp/parser.c > =================================================================== > --- gcc/cp/parser.c (revision 247445) > +++ gcc/cp/parser.c (working copy) > @@ -23716,7 +23716,7 @@ > if (virtual_p && !duplicate_virtual_error_issued_p) > { > cp_parser_error (parser, > - "%<virtual%> specified more than once > in base-specified"); > + "%<virtual%> specified more than once > in base-specifier"); > duplicate_virtual_error_issued_p = true; > } > > @@ -23736,7 +23736,7 @@ > && !duplicate_access_error_issued_p) > { > cp_parser_error (parser, > - "more than one access specifier in > base-specified"); > + "more than one access specifier in > base-specifier"); > duplicate_access_error_issued_p = true; > } > > ===================================================================
OK for both (with my "diagnostic messages" maintainer hat on). Dave