This is an archive of the discontinued LLVM Phabricator instance.

[flang] Don't complain about dummy subroutine under IMPLICIT NONE
ClosedPublic

Authored by klausler on May 17 2023, 1:36 PM.

Details

Summary

The compiler emits a bogus 'No explicit type declared for...' error
when a dummy procedure turns out to be a subroutine (or at least not
a function or object) under control of IMPLICIT NONE.

Fixes https://github.com/llvm/llvm-project/issues/60224

Diff Detail

Event Timeline

klausler created this revision.May 17 2023, 1:36 PM
Herald added a project: Restricted Project. · View Herald Transcript
klausler requested review of this revision.May 17 2023, 1:36 PM
PeteSteinfeld requested changes to this revision.May 17 2023, 5:29 PM

Things build OK, but I get errors in check-flang:

FAIL: Flang :: Semantics/implicit13.f90 (1508 of 2183)
******************** TEST 'Flang :: Semantics/implicit13.f90' FAILED ********************
Script:
--
: 'RUN: at line 1';   "/usr/bin/python3.6" /local/home/psteinfeld/main/814/flang/test/Semantics/test_errors.py /local/home/psteinfeld/main/814/flang/test/Semantics/implicit13.f90 /local/home/psteinfeld/main/814/build/bin/flang-new -fc1
--
Exit Code: 1

Command Output (stdout):
--
--- 
+++ 
@@ -1,2 +1,2 @@

actual at 2: No explicit type declared for 'func'
actual at 2: No explicit type declared for 'obj'
expect at 6: No explicit type declared for 'func'
expect at 8: No explicit type declared for 'obj'
This revision now requires changes to proceed.May 17 2023, 5:29 PM
klausler updated this revision to Diff 523510.May 18 2023, 12:33 PM

Update test.

Test fixed; please take another look.

PeteSteinfeld accepted this revision.May 18 2023, 1:47 PM

All builds and tests correctly and looks good.

This revision is now accepted and ready to land.May 18 2023, 1:47 PM