Bug 96216 - Gap in interface checking
Summary: Gap in interface checking
Status: NEW
Alias: None
Product: gcc
Classification: Unclassified
Component: fortran (show other bugs)
Version: 11.0
: P3 enhancement
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords: accepts-invalid, diagnostic
Depends on:
Blocks:
 
Reported: 2020-07-16 06:55 UTC by Thomas Koenig
Modified: 2021-04-16 16:22 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed: 2020-07-16 00:00:00


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Koenig 2020-07-16 06:55:44 UTC
The following is not flagged:

      DOUBLE PRECISION X (1000)
      DOUBLE PRECISION A
      INTEGER NCP
      NCP = 10
      CALL XYZ (NCP, X, X (NCP + 1))
      CALL XYZ (NCP, X (NCP+1) , X)
      CALL XYZ (NCP, X (NCP+1) , A)
      END

The second call is not compatible with the third one, and should be flagged.