[flang-commits] [PATCH] D155492: [flang] Emit errors on vector subscripts with duplicated elements when object must be definable

Peter Klausler via Phabricator via flang-commits flang-commits at lists.llvm.org
Mon Jul 17 10:18:16 PDT 2023


klausler created this revision.
klausler added a reviewer: PeteSteinfeld.
klausler added a project: Flang.
Herald added subscribers: sunshaoce, jdoerfert.
Herald added a reviewer: sscalpone.
Herald added a project: All.
klausler requested review of this revision.

When the left-hand side of an assignment, or any other context demanding
definability, comprises a designator with a vector subscript that is
known at compilation time to have one or more duplicated elements,
emit an error message.


https://reviews.llvm.org/D155492

Files:
  flang/lib/Semantics/check-call.cpp
  flang/lib/Semantics/definable.cpp
  flang/lib/Semantics/definable.h
  flang/test/Semantics/definable06.f90

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D155492.541119.patch
Type: text/x-patch
Size: 5055 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20230717/63ee04b4/attachment-0001.bin>


More information about the flang-commits mailing list