public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/99514] New: incorrect Error: Threadprivate at (1) isn't SAVEd  ( implicit save via DATA initialization )
@ 2021-03-10 10:55 markus.weiland at ipp dot mpg.de
  2021-03-10 12:40 ` [Bug fortran/99514] " burnus at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: markus.weiland at ipp dot mpg.de @ 2021-03-10 10:55 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 99514
           Summary: incorrect Error: Threadprivate at (1) isn't SAVEd  (
                    implicit save via DATA initialization )
           Product: gcc
           Version: 9.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: markus.weiland at ipp dot mpg.de
  Target Milestone: ---

Created attachment 50347
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50347&action=edit
minimal example source code to reproduce the error

Compiling the attached src file with:
gfortran -c src/minimal.f90 -fopenmp

gives the following error:

src/minimal.f90:7:12:

    7 |   DATA NTest /1/
      |            1
Error: Threadprivate at (1) isn't SAVEd


while compiling with ifort
ifort -c src/minimal.f90 -qopenmp

works without error.

I believe the ifort behavior is correct here, because the initialization of
NTest via DATA causes an implicit save, which seems not to be identified by
gfortran.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-03-15 13:30 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-10 10:55 [Bug fortran/99514] New: incorrect Error: Threadprivate at (1) isn't SAVEd ( implicit save via DATA initialization ) markus.weiland at ipp dot mpg.de
2021-03-10 12:40 ` [Bug fortran/99514] " burnus at gcc dot gnu.org
2021-03-10 13:02 ` dominiq at lps dot ens.fr
2021-03-10 15:07 ` burnus at gcc dot gnu.org
2021-03-12 15:34 ` cvs-commit at gcc dot gnu.org
2021-03-15 13:30 ` 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).