[Bug fortran/90111] Placement of Fortran OpenACC 'routine' directive inside 'specification-part'

2020-11-09 Thread burnus at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90111

Tobias Burnus  changed:

   What|Removed |Added

 CC||burnus at gcc dot gnu.org
 Status|WAITING |RESOLVED
 Resolution|--- |FIXED

--- Comment #3 from Tobias Burnus  ---
FIXED on mainline (GCC 11).

See also remarks in the patch email at:
https://gcc.gnu.org/pipermail/gcc-patches/2020-November/558460.html

[Bug fortran/90111] Placement of Fortran OpenACC 'routine' directive inside 'specification-part'

2020-11-09 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90111

--- Comment #2 from CVS Commits  ---
The master branch has been updated by Tobias Burnus :

https://gcc.gnu.org/g:f27a3b37b4805feba138dd421f039e3267b1c5f0

commit r11-4845-gf27a3b37b4805feba138dd421f039e3267b1c5f0
Author: Tobias Burnus 
Date:   Mon Nov 9 16:16:44 2020 +0100

Fortran: Fix OpenACC in specification-part checks [PR90111]

OpenACC's routine and declare directives can appear anywhere in the
specification part, i.e. before/after use-stmts, import-stmt,
implicit-part,
or declaration-constructs.

gcc/fortran/ChangeLog:

PR fortran/90111
* parse.c (case_decl): Move ST_OACC_ROUTINE and ST_OACC_DECLARE to
...
(case_omp_decl): ... here.
(verify_st_order): Update comment.

gcc/testsuite/ChangeLog:

PR fortran/90111
* gfortran.dg/goacc/specification-part.f90: New test.

[Bug fortran/90111] Placement of Fortran OpenACC 'routine' directive inside 'specification-part'

2019-05-04 Thread dominiq at lps dot ens.fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90111

Dominique d'Humieres  changed:

   What|Removed |Added

 Status|UNCONFIRMED |WAITING
   Last reconfirmed||2019-05-04
 Ever confirmed|0   |1

--- Comment #1 from Dominique d'Humieres  ---
I see in the F2018 draft:

R504 specification-part is [ use-stmt ] ...
[ import-stmt ] ...
[ implicit-part ]
[ declaration-construct ] ...

AFAIU it, I expect the directive

  !$acc routine seq

have to go into the [ declaration-construct ].