This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/33020] New: Bind(C): c_f_pointer: Bogus? type/rank mismatch error
- From: "burnus at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 Aug 2007 06:50:17 -0000
- Subject: [Bug fortran/33020] New: Bind(C): c_f_pointer: Bogus? type/rank mismatch error
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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