[flang-commits] [flang] [flang] Add parser support for explicit-shape-bounds-spec (PR #188447)

Eugene Epshteyn via flang-commits flang-commits at lists.llvm.org
Wed Apr 15 15:55:05 PDT 2026


================
@@ -571,6 +571,7 @@ class UnparseVisitor {
     common::visit(
         common::visitors{
             [&](const std::list<ExplicitShapeSpec> &y) { Walk(y, ","); },
+            [&](const ExplicitShapeBoundsSpec &y) { /*TODO: unreachable until after semantic analysis is done */ },
----------------
eugeneepshteyn wrote:

Could you please give some examples with explicit-shape-bounds-spec and how do you expect them to look unparsed once semantic analysis is done? Unparsing is hugely important once you start serializing things into module files, so I'm curious how it will look there and how it will be processed when module is loaded.

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


More information about the flang-commits mailing list