This is an archive of the discontinued LLVM Phabricator instance.

[flang] Diagnose invalid initializations
ClosedPublic

Authored by klausler on Jan 27 2023, 9:50 AM.

Details

Summary

f18 current ignores attempts to initialize (with =expr) things
that are not objects, or allows meaningless initializations of
things that have mistakenly been promoted to be objects.
Fix by refusing to promote to objects names that have any
attributes that cannot be applied to objects, and then catch
data initializations of symbols that are not objects.

Diff Detail

Event Timeline

klausler created this revision.Jan 27 2023, 9:50 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 27 2023, 9:50 AM
klausler requested review of this revision.Jan 27 2023, 9:50 AM
PeteSteinfeld accepted this revision.Jan 27 2023, 11:15 AM

All builds and tests correctly and looks good.

This revision is now accepted and ready to land.Jan 27 2023, 11:15 AM
This revision was automatically updated to reflect the committed changes.