This is an archive of the discontinued LLVM Phabricator instance.

[flang] Fix bogus error on recursive ENTRY
ClosedPublic

Authored by klausler on Aug 7 2023, 3:00 PM.

Details

Summary

An incorrect "Implicit declaration of function '...' has a different result type
than in previous declaration" is being emitted for ENTRY names used
recursively. The predicate used to check for recursive use only allowed
for scopes of functions, not ENTRYs.

Fixes llvm-test-suite/Fortran/gfortran/regression/whole_file_9.f90.

Diff Detail

Event Timeline

klausler created this revision.Aug 7 2023, 3:00 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 7 2023, 3:00 PM
Herald added a subscriber: jdoerfert. · View Herald Transcript
klausler requested review of this revision.Aug 7 2023, 3:00 PM
vdonaldson accepted this revision.Aug 7 2023, 3:10 PM
This revision is now accepted and ready to land.Aug 7 2023, 3:10 PM
This revision was automatically updated to reflect the committed changes.