This is an archive of the discontinued LLVM Phabricator instance.

[flang] Add optional portability warning for upcoming Fortran 202X/3 breaking change
ClosedPublic

Authored by klausler on Jun 30 2023, 11:30 AM.

Details

Summary

The soon-to-be-published next revision of the ISO Fortran language standard
contains a couple of breaking changes to previous specifications that may cause
existing programs to silently change their behavior.

For the change that introduces automatic reallocation of deferred length
allocatable character scalar variables when they appear as the targets
of internal WRITE statements, as IOMSG=/ERRMSG= variables, as outputs
of INQUIRE specifiers, or as INTENT(OUT) arguments to intrinsic
procedures, this patch adds an optional portability warning.

Diff Detail

Event Timeline

klausler created this revision.Jun 30 2023, 11:30 AM
Herald added a project: Restricted Project. · View Herald Transcript
klausler requested review of this revision.Jun 30 2023, 11:30 AM
This revision is now accepted and ready to land.Jul 3 2023, 6:11 AM
This revision was landed with ongoing or failed builds.Jul 3 2023, 9:28 AM
This revision was automatically updated to reflect the committed changes.