The following is non-standard and the compiler should probably generate a warning/error with '-pedantic -std=f95', but does not do so with gcc version 4.3.0 20080103 (experimental) [trunk revision 131300] (GCC) SUBROUTINE S1(I) CHARACTER(LEN=I+J) :: a ENTRY E1(J) END SUBROUTINE S1 END
Interestingly, NAG f95 does not detect this. ifort prints only a warning: Warning: This entry point does not define all dummy variables used in bounds or length expressions of automatic data objects. [S1] whereas g95 prints an error: Error: Specification expression at (1) is defined by dummy variables of different entry points
still fails in 4.4
Entry is now a F2008 obsolescent feature. Neither nagfor nor PGI catch this.