------- Comment #1 from fxcoudert at gcc dot gnu dot org 2005-11-26 19:00 ------- 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. -- fxcoudert at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Keywords| |accepts-invalid Last reconfirmed|0000-00-00 00:00:00 |2005-11-26 19:00:50 date| | Summary|better diagnostic needed |dummy argument with POINTER | |attribute http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25048