This is an archive of the discontinued LLVM Phabricator instance.

[flang] Improve error message (initialized variable in pure subprogram)
ClosedPublic

Authored by klausler on Jan 19 2022, 10:14 AM.

Details

Summary

When variable with the SAVE attribute appears in a pure subprogram,
emit a more specialized error message if the SAVE attribute was acquired
from static initialization.

Diff Detail

Event Timeline

klausler created this revision.Jan 19 2022, 10:14 AM
klausler requested review of this revision.Jan 19 2022, 10:14 AM
vdonaldson accepted this revision.Jan 19 2022, 10:25 AM
This revision is now accepted and ready to land.Jan 19 2022, 10:25 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 19 2022, 5:27 PM