[Bug fortran/25070] rank mismatch in subroutine call
fxcoudert at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sat Nov 26 19:47:00 GMT 2005
------- Comment #1 from fxcoudert at gcc dot gnu dot org 2005-11-26 19:47 -------
gfortran doesn't catch that error at compile-time.
## g95 ##
In file foo.f90:3
CALL TST(I)
1
Error: Rank mismatch for assumed-shape array in parameter 'i' at (1)
## Intel ##
fortcom: Error: foo.f90, line 3: The shape matching rules of actual arguments
and dummy arguments have been violated. [I]
CALL TST(I)
---------^
compilation aborted for foo.f90 (code 1)
## Portland ##
PGF90-S-0446-Argument number 1 to tst: rank mismatch (foo.f90: 3)
0 inform, 0 warnings, 1 severes, 0 fatal for MAIN
## Sun ##
CALL TST(I)
^
"foo.f90", Line = 3, Column = 10: ERROR: The rank of this actual argument must
match that of assumed-shape dummy argument "I".
--
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:47:29
date| |
Summary|better diagnostic needed |rank mismatch in subroutine
| |call
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25070
More information about the Gcc-bugs
mailing list