[flang-commits] [flang] [flang][Lower] Implement lowering for new expression kind used in explicit-shape-bounds-spec (PR #215403)

via flang-commits flang-commits at lists.llvm.org
Wed Aug 12 02:01:24 PDT 2026


================

----------------
MattPD wrote:

A compiler built from the PR head `b05b5f12` and one built from base commit `05c12f14` both reject a unit compiled against the generated module, so the failure predates this PR.

The `.mod` file contains compiler-generated `rank1BoundElement` syntax with a `dim=` keyword. The compiler parses that syntax as a procedure reference, then rejects it as an impure function reference and reports the `dim=` keyword as invalid.

Suggestion: As this PR enables end-to-end lowering for declarations that produce this output, emit valid module syntax and add a test that compiles a unit against the generated module.

https://github.com/llvm/llvm-project/pull/215403


More information about the flang-commits mailing list