This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH, testsuite]: Fix gfortran.dg/coarray/event_3.f08 testcase (PR fortran/70696)


Hello!

As explained in PR70696, comment #17 [1], the referred testcase,
introduced as a testcase for PR70696, results in an uninitialized read
from x. Adding "save" attribute, as explained and required in the
comment #1, fixes the runtime failure for me.

2019-01-27  Uroš Bizjak  <ubizjak@gmail.com>

    PR fortran/70696
    * gfortran.dg/coarray/event_3.f0: Add save attribute to x.

Patch was tested on x86_64-linux-gnu and alphaev68-linux-gnu, where it
fixes the runtime failure.

[1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70696#c17

OK for mainline and release branches?

Uros.

Attachment: f.diff.txt
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]