Bug 107122 - Improve error message wording
Summary: Improve error message wording
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: fortran (show other bugs)
Version: unknown
: P3 normal
Target Milestone: 15.0
Assignee: Not yet assigned to anyone
URL:
Keywords: diagnostic
Depends on:
Blocks:
 
Reported: 2022-10-02 09:16 UTC by Göran Uddeborg
Modified: 2025-01-20 20:29 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed: 2025-01-20 00:00:00


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Göran Uddeborg 2022-10-02 09:16:50 UTC
At https://gcc.gnu.org/git?p=gcc.git;a=blob;f=gcc/fortran/openmp.cc;h=ce719bd5d92dc40185a4d0215d5db13b7956acba;hb=HEAD#l6538 there is a message

    ORDER clause must not be used together ORDERED at %L

In my mind, that would read better by adding "with" after "together".
Comment 1 anlauf 2025-01-20 20:11:56 UTC
Agreed.  Will take care of it.
Comment 2 GCC Commits 2025-01-20 20:23:15 UTC
The master branch has been updated by Harald Anlauf <anlauf@gcc.gnu.org>:

https://gcc.gnu.org/g:96f4ba4d19a765902af7b79aa77d52c62fa2f82c

commit r15-7077-g96f4ba4d19a765902af7b79aa77d52c62fa2f82c
Author: Harald Anlauf <anlauf@gmx.de>
Date:   Mon Jan 20 21:21:48 2025 +0100

    Fortran: improve error message for conflicting OpenMP clauses [PR107122]
    
            PR fortran/107122
    
    gcc/fortran/ChangeLog:
    
            * openmp.cc (resolve_omp_clauses): Add 'with' to error message text.
    
    gcc/testsuite/ChangeLog:
    
            * gfortran.dg/gomp/order-8.f90: Adjust pattern.
Comment 3 anlauf 2025-01-20 20:29:40 UTC
Fixed in gcc-15.

Thanks for the report!