https://gcc.gnu.org/g:691ad6ef9e14e2234ff296fd69bf7d324e71d135
commit r16-8529-g691ad6ef9e14e2234ff296fd69bf7d324e71d135 Author: Yang Kun <[email protected]> Date: Wed Apr 8 15:36:27 2026 +0200 c++, openmp: Fix wrong error messages Error messages wrongly said "invalid depend kind" gcc/cp/ChangeLog: * parser.cc (cp_parser_omp_clause_proc_bind): Fix error message (cp_parser_omp_clause_device_type): Likewise. Signed-off-by: Yang Kun <[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 b3a241148693..01d8f230fb48 100644 --- a/gcc/cp/parser.cc +++ b/gcc/cp/parser.cc @@ -45823,7 +45823,7 @@ cp_parser_omp_clause_proc_bind (cp_parser *parser, tree list, return c; invalid_kind: - cp_parser_error (parser, "invalid depend kind"); + cp_parser_error (parser, "invalid proc_bind kind"); resync_fail: cp_parser_skip_to_closing_parenthesis (parser, /*recovering=*/true, /*or_comma=*/false, @@ -45890,7 +45890,7 @@ cp_parser_omp_clause_device_type (cp_parser *parser, tree list, return c; invalid_kind: - cp_parser_error (parser, "invalid depend kind"); + cp_parser_error (parser, "expected %<host%>, %<nohost%> or %<any%>"); resync_fail: cp_parser_skip_to_closing_parenthesis (parser, /*recovering=*/true, /*or_comma=*/false,
