[Bug c/109999] [OpenMP] Bogus error message: talks about '"#pragma omp" clause' instead of '"target" clause
burnus at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon May 29 18:05:39 GMT 2023
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109999
--- Comment #2 from Tobias Burnus <burnus at gcc dot gnu.org> ---
Created attachment 55188
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55188&action=edit
Patch implementing the wording change "'#pragma omp/acc' clause" → "an
OpenMP/ACC clause" (untested)
I think the following wording is clearer, i.e.
- instead of:
error: expected ‘#pragma omp’ clause before ‘uses_allocators’
+ now:
error: expected an OpenMP clause before ‘uses_allocators’
(I could imagine even a more helpful wording in this case, but I think that
change is sufficient; The "before ..." (here: "before %qE") is appended via
c_parser_error → c_parser_error_richloc → c_parse_error.)
More information about the Gcc-bugs
mailing list