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/33020] New: Bind(C): c_f_pointer: Bogus? type/rank mismatch error


http://www.lrz-muenchen.de/services/software/mathematik/gsl/fortran/index.html

This program (./configure --f90 gfortran) fails to compile with the message:

       call c_f_pointer(pdata,fgsl_permutation_data,(/size/))
                                                   1
Error: Type/rank mismatch in argument 'shape' at (1)


I failed to create a smaller example. The program compiles with g95 and ifort
without problems, but it fails with the same error message with NAG f95. For a
reduced example, it still fails with NAG f95 but not with gfortran.

I could not see anything which indicated that this program is invalid.


-- 
           Summary: Bind(C): c_f_pointer: Bogus? type/rank mismatch error
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: burnus at gcc dot gnu dot org
OtherBugsDependingO 32630
             nThis:


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33020


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