On 1/16/24 16:28, Marek Polacek wrote:
Tested x86_64-pc-linux-gnu, ok for trunk?
OK.
-- >8 --
Diagnostics should start with a lower-case letter.
gcc/cp/ChangeLog:
* decl.cc (grokdeclarator) <case cdk_function>: Tweak diagnostic
messages.
---
gcc/cp/decl.cc | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/gcc/cp/decl.cc b/gcc/cp/decl.cc
index b10a72a87bf..b805addc328 100644
--- a/gcc/cp/decl.cc
+++ b/gcc/cp/decl.cc
@@ -13394,12 +13394,12 @@ grokdeclarator (const cp_declarator *declarator,
gcc_rich_location bad_xobj_parm
(DECL_SOURCE_LOCATION (TREE_VALUE (parm)));
error_at (&bad_xobj_parm,
- "Only the first parameter of a member function "
- "can be declared as an explicit object parameter");
+ "only the first parameter of a member function "
+ "can be declared as an explicit object parameter");
}
if (bad_xobj_parm_encountered && xobj_parm)
inform (DECL_SOURCE_LOCATION (xobj_parm),
- "Valid explicit object parameter declared here");
+ "valid explicit object parameter declared here");
}
if (reqs)
base-commit: 6a6f338c1cbfc2585cd85358a83e601fb959445e