Skip to content
Unverified Commit 411f839a authored by Valentin Clement's avatar Valentin Clement
Browse files

[flang] Fix for array upper bounds with *

Even though the array is declared with '*' upper bounds, it has an
initial value that has a statically known shape. Use the shape from
the type of the initializer when the declared size is '*'.

This patch is part of the upstreaming effort from fir-dev branch.

Reviewed By: jeanPerier

Differential Revision: https://reviews.llvm.org/D128889



Co-authored-by: default avatarEric Schweitz <eschweitz@nvidia.com>
parent c628e9eb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment