llvm-project
8320bcbb - [flang][semantic] Implement semantic checks and new data structure for explicit-shape-bounds-spec (#203030)

Commit
9 days ago
[flang][semantic] Implement semantic checks and new data structure for explicit-shape-bounds-spec (#203030) Since Lower and large parts of Semantics depend on ShapeSpec being a scalar bound, implement a class RankOneBoundElement that does just this. Since there is no syntactic representation for this node kind, have both unparse.cpp and mod-file.cpp emit the original rank-1 integer array expression instead of scalarized versions. Analyze does semantic checks, then repackages into an array of scalarized ShapeSpec pairs instead of a pair of arrays. Lower implementation in follow-up stack PR. Also, fix pre-existing bug where overriding dimension spec in entity-decl throws away and fails to type check the array-spec provided in dimension spec.
Parents
Loading