[flang-commits] [PATCH] D150834: [flang] Fix bug that disallows coindexed-object in event-post-stmt

Katherine Rasmussen via Phabricator via flang-commits flang-commits at lists.llvm.org
Wed May 17 18:29:23 PDT 2023


ktras created this revision.
ktras added reviewers: PeteSteinfeld, klausler, jeanPerier, kiranchandramohan, tskeith, rouson, sscalpone.
ktras added projects: Flang, LLVM.
Herald added subscribers: sunshaoce, jdoerfert, arphaman.
Herald added a project: All.
ktras requested review of this revision.

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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D150834

Files:
  flang/lib/Semantics/check-coarray.cpp
  flang/test/Semantics/event01a.f90
  flang/test/Semantics/event01c.f90
  flang/test/Semantics/event02a.f90
  flang/test/Semantics/event02c.f90

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D150834.523234.patch
Type: text/x-patch
Size: 11221 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20230518/4173cd35/attachment-0001.bin>


More information about the flang-commits mailing list