This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] C++ parser: Fix typos in error messages
- From: Volker Reichelt <v dot reichelt at netcologne dot de>
- To: gcc-patches at gcc dot gnu dot org
- Date: Tue, 2 May 2017 08:05:55 +0200 (CEST)
- Subject: [PATCH] C++ parser: Fix typos in error messages
- Authentication-results: sourceware.org; auth=none
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.reichelt@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;
}
===================================================================