Bug 90921

Summary: Fortran OpenACC 'declare' directive's module handling causes duplicate data clauses
Product: gcc Reporter: Thomas Schwinge <tschwinge>
Component: fortranAssignee: Not yet assigned to anyone <unassigned>
Status: NEW ---    
Severity: normal CC: burnus, jules
Priority: P3 Keywords: openacc
Version: 10.0   
Target Milestone: ---   
Host: Target:
Build: Known to work:
Known to fail: Last reconfirmed: 2019-06-19 00:00:00
Bug Depends on:    
Bug Blocks: 92790    

Description Thomas Schwinge 2019-06-18 20:36:52 UTC
As reported in <http://mid.mail-archive.com/20181004140413.2147eca1@squid.athome>.
Comment 1 Thomas Schwinge 2019-06-18 22:16:27 UTC
Author: tschwinge
Date: Tue Jun 18 22:15:53 2019
New Revision: 272454

URL: https://gcc.gnu.org/viewcvs?rev=272454&root=gcc&view=rev
Log:
[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.

Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/trans-decl.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gfortran.dg/goacc/declare-3.f95
Comment 2 Tobias Burnus 2020-03-11 08:57:58 UTC
A patch for this was committed in June 2019 – hence, for GCC trunk = GCC 10.

Can this be closed? – Or do you want to backport it or/and is there something else still missing?