This is an archive of the discontinued LLVM Phabricator instance.

[flang] Fix folding of character array kind conversion
ClosedPublic

Authored by klausler on Aug 7 2023, 3:04 PM.

Details

Summary

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.

Diff Detail

Event Timeline

klausler created this revision.Aug 7 2023, 3:04 PM
Herald added a project: Restricted Project. · View Herald Transcript
Herald added a subscriber: jdoerfert. · View Herald Transcript
klausler requested review of this revision.Aug 7 2023, 3:04 PM
PeteSteinfeld accepted this revision.Aug 7 2023, 6:18 PM

All builds and tests correctly and looks good.

This revision is now accepted and ready to land.Aug 7 2023, 6:18 PM
This revision was automatically updated to reflect the committed changes.