This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/17712] New: Rejects call where array element is used as scalar
- From: "schnetter at aei dot mpg dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 28 Sep 2004 13:34:02 -0000
- Subject: [Bug fortran/17712] New: Rejects call where array element is used as scalar
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
GNU Fortran 95 (GCC 4.0.0 20040928 (experimental)) complains:
$ ~/gcc/bin/gfortran -c typerank.f90
In file typerank.f90:26
call gauss( x(i), a, yan, dyda, ma )
1
Error: Type/rank mismatch in argument 'x' at (1)
I cannot see what is wrong here. The type is "double precision", the rank is
0 (scalar), and the intent is (in) for both the dummy and the actual argument.
--
Summary: Rejects call where array element is used as scalar
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: schnetter at aei dot mpg dot de
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17712