https://gcc.gnu.org/g:4320e2bf6fc15c973ea2404c5d3d947b06c8cab6
commit r16-6214-g4320e2bf6fc15c973ea2404c5d3d947b06c8cab6 Author: benwu25 <[email protected]> Date: Wed Dec 17 20:54:00 2025 +0700 c++: adjust comment wording in cp_parser_init_declarator It seems likely the original author meant to use either "and" or "for" in this comment rather than both. We can remove the "for" to make it slightly more clear that the declarator for the function-definition and everything left in the function-definition would be handled here. gcc/cp/ChangeLog: * parser.cc (cp_parser_init_declarator): Adjust comment. Signed-off-by: Ben Wu <[email protected]> Diff: --- gcc/cp/parser.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gcc/cp/parser.cc b/gcc/cp/parser.cc index be01cfdefe2b..d9c8cfada935 100644 --- a/gcc/cp/parser.cc +++ b/gcc/cp/parser.cc @@ -24888,8 +24888,8 @@ omp_maybe_record_variant_base (cp_parser* parser, tree decl) befriended it). If FUNCTION_DEFINITION_ALLOWED_P then we handle the declarator and - for a function-definition here as well. If the declarator is a - declarator for a function-definition, *FUNCTION_DEFINITION_P will + the rest of a function-definition here as well. If the declarator is + a declarator for a function-definition, *FUNCTION_DEFINITION_P will be TRUE upon return. By that point, the function-definition will have been completely parsed.
