This is an archive of the discontinued LLVM Phabricator instance.

[flang] Ignore errors on declarations in interfaces that "have no effect"
ClosedPublic

Authored by klausler on Oct 4 2022, 2:59 PM.

Details

Summary

Fortran strangely allows declarations to appear in procedure interface
definitions when those declarations do not contribute anything to the
characteristics of the procedure; in particular, one may declare local
variables that are neither dummy variables nor function results.
Such declarations "have no effect" on the semantics of the program,
and that should include semantic error checking for things like
special restrictions on PURE procedures.

Diff Detail

Event Timeline

klausler created this revision.Oct 4 2022, 2:59 PM
Herald added a project: Restricted Project. · View Herald TranscriptOct 4 2022, 2:59 PM
Herald added a subscriber: jdoerfert. · View Herald Transcript
klausler requested review of this revision.Oct 4 2022, 2:59 PM
PeteSteinfeld accepted this revision.Oct 4 2022, 7:35 PM

Weird! All builds and tests correctly and looks good.

This revision is now accepted and ready to land.Oct 4 2022, 7:35 PM