This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/17712] New: Rejects call where array element is used as scalar


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]