This is an archive of the discontinued LLVM Phabricator instance.

[flang] Be more precise about CHARACTER known length discrepancies
ClosedPublic

Authored by klausler on Oct 29 2022, 6:45 PM.

Details

Summary

Many intrinsic functions in Fortran require that two or more of their
arguments have types that agree in the values of all of their type
parameters, while others only require the same type category and kind
type parameters but not lengths, including the important case of
CHARACTER. The intrinsic procedure tables need to be adjusted in
some cases so that discrepancies in character lengths that are known
at compilation time can be diagnosed as errors where they should be,
as in for example MOVE_ALLOC().

Diff Detail

Event Timeline

klausler created this revision.Oct 29 2022, 6:45 PM
Herald added a project: Restricted Project. · View Herald TranscriptOct 29 2022, 6:45 PM
Herald added a subscriber: jdoerfert. · View Herald Transcript
klausler requested review of this revision.Oct 29 2022, 6:45 PM
This revision is now accepted and ready to land.Oct 31 2022, 2:28 AM