[PR90921] Fortran OpenACC 'declare' directive's module handling causes duplicate...
authorJulian Brown <julian@codesourcery.com>
Tue, 18 Jun 2019 22:15:53 +0000 (00:15 +0200)
committerThomas Schwinge <tschwinge@gcc.gnu.org>
Tue, 18 Jun 2019 22:15:53 +0000 (00:15 +0200)
commit8701b671ee19eaf54c4fc67d27ed0a2b57467f94
tree30ff0cdb6ba77d92c5ba2292110c14ad0c97a231
parentca8ecd919453664b1312e6c7d236e404731d8bb0
[PR90921] Fortran OpenACC 'declare' directive's module handling causes duplicate data clauses

gcc/fortran/
PR fortran/90921
* trans-decl.c (finish_oacc_declare): Reset module_oacc_clauses
before scanning each namespace.
gcc/testsuite/
PR fortran/90921
* gfortran.dg/goacc/declare-3.f95: Update.

From-SVN: r272454
gcc/fortran/ChangeLog
gcc/fortran/trans-decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/goacc/declare-3.f95