Bug 99303 - OpenMP: typo in diagnostic
Summary: OpenMP: typo in diagnostic
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: fortran (show other bugs)
Version: 11.0
: P3 normal
Target Milestone: ---
Assignee: Jakub Jelinek
URL:
Keywords: diagnostic, openmp
Depends on:
Blocks: trivial_translation_nits
  Show dependency treegraph
 
Reported: 2021-02-27 11:53 UTC by Roland Illig
Modified: 2021-02-28 10:19 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed: 2021-02-27 00:00:00


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Roland Illig 2021-02-27 11:53:02 UTC
fortran/openmp.c says:
> not set at for the

This should be "not set for the".
The "at" is probably a copy-and-paste mistake from the usual "at %L".
Comment 1 Roland Illig 2021-02-27 11:54:46 UTC
This typo appears 2 times.
Comment 2 Roland Illig 2021-02-27 12:04:58 UTC
same file, other typo:
> "clauses on the same construct %L"

The "at %L" is missing.
Comment 3 GCC Commits 2021-02-28 10:17:58 UTC
The master branch has been updated by Jakub Jelinek <jakub@gcc.gnu.org>:

https://gcc.gnu.org/g:48ca2185bfb5126baacab812b3f14c80123ccb88

commit r11-7434-g48ca2185bfb5126baacab812b3f14c80123ccb88
Author: Jakub Jelinek <jakub@redhat.com>
Date:   Sun Feb 28 11:16:33 2021 +0100

    fortran: Fix up wording of 3 OpenMP diagnostic messages [PR99303]
    
    As reported in the PR, some diagnostic messages need wording improvements.
    
    2021-02-28  Jakub Jelinek  <jakub@redhat.com>
    
            PR fortran/99303
            * openmp.c (gfc_omp_requires_add_clause): Fix up diagnostic message
            wordings.
            (resolve_omp_clauses): Likewise.
Comment 4 Jakub Jelinek 2021-02-28 10:19:47 UTC
Fixed.