[Bug translation/80189] New: gimplify.c: check whether parallel/task/teams should be translated
roland.illig at gmx dot de
gcc-bugzilla@gcc.gnu.org
Sat Mar 25 23:13:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80189
Bug ID: 80189
Summary: gimplify.c: check whether parallel/task/teams should
be translated
Product: gcc
Version: 7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: translation
Assignee: unassigned at gcc dot gnu.org
Reporter: roland.illig at gmx dot de
Target Milestone: ---
from gimplify.c, function omp_default_clause:
const char *rtype;
if (ctx->region_type & ORT_PARALLEL)
rtype = "parallel";
else if (ctx->region_type & ORT_TASK)
rtype = "task";
else if (ctx->region_type & ORT_TEAMS)
rtype = "teams";
else
gcc_unreachable ();
error ("%qE not specified in enclosing %s",
DECL_NAME (lang_hooks.decls.omp_report_decl (decl)), rtype);
error_at (ctx->location, "enclosing %s", rtype);
Should "rtype" be translated here? If so, the string literals must be inlined
into the diagnostic since they result in different grammar, at least in German.
If they should not be translated, they should be marked in the code as
intentionally not translated, since this code looks like an oversight.
More information about the Gcc-bugs
mailing list