using GNU Fortran 95 (GCC) 4.1.0 20051126 (prerelease) with '-g -pedantic -std=f95', I get a bad / no diagnostic for the following invalid code: INTEGER, POINTER :: I CALL S1((I)) CONTAINS SUBROUTINE S1(I) INTEGER, POINTER ::I END SUBROUTINE S1 END
gfortran doesn't issue an error on that one, while we have: ## g95 ## In file foo.f90:2 CALL S1((I)) 1 Error: Actual argument for 'i' must be a pointer at (1) ## Intel ## fortcom: Error: foo.f90, line 2: A pointer dummy argument may only be argument associated with a pointer. [I] CALL S1((I)) ---------^ fortcom: Info: foo.f90, line 4: This variable has not been used. [I] SUBROUTINE S1(I) ---------------^ compilation aborted for foo.f90 (code 1) ## Portland ## ## Sun ## CALL S1((I)) ^ "foo.f90", Line = 2, Column = 9: ERROR: Dummy argument "I" has the POINTER attribute. It requires an actual argument with the POINTER attribute.
This looks like another case for PR 14771.
Duplicate as it's automatically fixed by the patch for PR14771 *** This bug has been marked as a duplicate of 14771 ***