public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/115301] New: [OpenMP] Fix handling spaces in OpenMP directives – optional in F90, deprecated in F
@ 2024-05-31  7:03 burnus at gcc dot gnu.org
  0 siblings, 0 replies; only message in thread
From: burnus at gcc dot gnu.org @ 2024-05-31  7:03 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115301

            Bug ID: 115301
           Summary: [OpenMP] Fix handling spaces in OpenMP directives –
                    optional in F90, deprecated in F
           Product: gcc
           Version: 15.0
            Status: UNCONFIRMED
          Keywords: diagnostic, openmp, rejects-valid
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: burnus at gcc dot gnu.org
  Target Milestone: ---

OpenMP permits in free-form Fortran:

"One or more blanks or horizontal tabs are optional to separate adjacent
keywords in directive-names unless otherwise specified."

and gives as example:

   !$omp paralleldo shared(a,b,c)

GCC currently requires a space between 'parallel' and 'do'.  (While the wording
suggests that the space between 'do' and 'shared' is mandatory).

→ Rejects valid issue.

Note: ifort, flang, xlf, ... do handle this syntax.

* * *

TR13 likely contains the following two changes (OpenMP Spec Issue #3871):

[Free form]
* The above use is deprecated, requiring a space between the directive names
(i.e 'parallel do' not 'paralleldo').

→ Add -Wdeprecated warning


[Fixed form]
* There are planned changes for the white-space handling, deprecating the
current usage.

→ Eventually add a -Wdeprecated warning

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-05-31  7:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-05-31  7:03 [Bug fortran/115301] New: [OpenMP] Fix handling spaces in OpenMP directives – optional in F90, deprecated in F burnus at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).