This is an archive of the discontinued LLVM Phabricator instance.

[flang] More compile-time error checking for null implied DO loops in array constructors
ClosedPublic

Authored by klausler on Jul 31 2023, 4:08 PM.

Details

Summary

An implied DO loop in an array constructor may not have a type (explicit
or otherwise) with a character length that depends on a value of an
implied DO index or a non-constant expression if the implied DO loop
executes no iterations. When the iteration count can be known to be
zero at compilation time, catch the case of a non-constant length
expression correctly.

Diff Detail

Event Timeline

klausler created this revision.Jul 31 2023, 4:08 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 31 2023, 4:08 PM
klausler requested review of this revision.Jul 31 2023, 4:08 PM
vzakhari accepted this revision.Jul 31 2023, 4:39 PM

Thank you!

This revision is now accepted and ready to land.Jul 31 2023, 4:39 PM