This is an archive of the discontinued LLVM Phabricator instance.

[flang] Extension: allow DATA to precede declaration under IMPLICIT NONE(TYPE)
ClosedPublic

Authored by klausler on Jul 17 2023, 10:26 AM.

Details

Summary

It is not standard conforming under IMPLICIT NONE(TYPE) for a name to
appear in a DATA statement prior to its explicit type declaration,
but it is benign, supported in other compilers, and attested in real
applications. Support it with an optional portability warning.

Fixes GitHub LLVM bug https://github.com/llvm/llvm-project/issues/63783.

Diff Detail

Event Timeline

klausler created this revision.Jul 17 2023, 10:26 AM
Herald added a project: Restricted Project. · View Herald Transcript
klausler requested review of this revision.Jul 17 2023, 10:26 AM
This revision is now accepted and ready to land.Jul 17 2023, 1:22 PM

That test now compiles, which was probably an unexpected result. I'll see whether I can modify the suite.

klausler closed this revision.Jul 18 2023, 10:50 AM