[Bug fortran/31564] New: Error: Type/rank mismatch in argument
michael dot a dot richmond at nasa dot gov
gcc-bugzilla@gcc.gnu.org
Fri Apr 13 17:48:00 GMT 2007
When I compile the module listed below I get the message:
c3.f90:15.23:
USE cdf_aux_mod
1
Error: Type/rank mismatch in argument 'arg_name' at (1)
g95 and Lahey do not produce error messages. Is it legal?
MODULE cdf_aux_mod
TYPE :: the_distribution
INTEGER :: parameters(1)
END TYPE the_distribution
TYPE (the_distribution), PARAMETER :: the_beta = the_distribution((/0/))
CONTAINS
SUBROUTINE set_bound(arg_name)
INTEGER, INTENT (IN) :: arg_name
END SUBROUTINE set_bound
END MODULE cdf_aux_mod
MODULE cdf_beta_mod
CONTAINS
SUBROUTINE cdf_beta()
USE cdf_aux_mod
INTEGER :: which
CALL set_bound(the_beta%parameters(which))
END SUBROUTINE cdf_beta
END MODULE cdf_beta_mod
--
Summary: Error: Type/rank mismatch in argument
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: michael dot a dot richmond at nasa dot gov
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31564
More information about the Gcc-bugs
mailing list