Fix bug in check for constraint C1604. The bug disallows the
event-variable in an event-post-stmt to be a coindexed-object, which
is allowed by the standard. Fix event-post-stmt and event-wait-stmt
tests so that the type of error that hides other errors are isolated
in one test, leaving one test with only standard conforming
statements. This change in testing makes it possible to check
that an event-variable in an event-post-stmt that is a
coindexed-object is now accepted by the compiler after this bugfix.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Thanks for the review, @PeteSteinfeld. You have requested changes to this revision but from the text of your comment, it seems like you accidentally requested changes. If you did mean to request changes, please let me know what needs to be updated.
Comment Actions
Thanks for working on this, but this code doesn't work for arrays of coarrays. Here's a test case that shows the problem:
Program bug Use Iso_Fortran_Env Implicit None Integer i Type(event_type) :: ev(2)[*] If (This_Image()==Num_Images()) Then Do i=1,Size(ev) Event Post (ev(i)[1]) End Do End If End Program