public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] C++ parser: Fix typos in error messages
@ 2017-05-02  6:11 Volker Reichelt
  2017-05-02  7:16 ` Volker Reichelt
  2017-06-05 15:33 ` David Malcolm
  0 siblings, 2 replies; 3+ messages in thread
From: Volker Reichelt @ 2017-05-02  6:11 UTC (permalink / raw)
  To: gcc-patches

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;
 	    }
 
===================================================================

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-06-05 15:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-02  6:11 [PATCH] C++ parser: Fix typos in error messages Volker Reichelt
2017-05-02  7:16 ` Volker Reichelt
2017-06-05 15:33 ` David Malcolm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).