This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/66973] Incorrect resolution of generic interface with TYPE(C_PTR)
- From: "brtnfld at hdfgroup dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 22 Jul 2015 21:55:05 +0000
- Subject: [Bug fortran/66973] Incorrect resolution of generic interface with TYPE(C_PTR)
- Auto-submitted: auto-generated
- References: <bug-66973-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66973
--- Comment #6 from Scot Breitenfeld <brtnfld at hdfgroup dot org> ---
it also works if you add USE ISO_C_BINDING to the main program:
PROGRAM main
USE ISO_C_BINDING
USE H5T
IMPLICIT NONE
REAL, TARGET :: val
CALL pickone(C_LOC(val))
END PROGRAM main