Unverified Commit 351b42a2 authored by Peter Klausler's avatar Peter Klausler
Browse files

[flang] Fix folding of character array kind conversion

The folding of conversions of character arrays from one kind to
another was not preserving the value of the character length expression
on the intermediate array constructor, causing spurious errors
when defining named constant arrays of one kind of character with
arrays of another kind.

Fixes llvm-test-suite/Fortran/gfortran/regression/widechar_10.f90.

Differential Revision: https://reviews.llvm.org/D157340
parent 37d6c1cc
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment