Bug 90921 - Fortran OpenACC 'declare' directive's module handling causes duplicate data clauses
Summary: Fortran OpenACC 'declare' directive's module handling causes duplicate data c...
Status: NEW
Alias: None
Product: gcc
Classification: Unclassified
Component: fortran (show other bugs)
Version: 10.0
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords: openacc
Depends on:
Blocks: 92790
  Show dependency treegraph
 
Reported: 2019-06-18 20:36 UTC by Thomas Schwinge
Modified: 2020-03-11 08:57 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed: 2019-06-19 00:00:00


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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?