This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/35612] testsuite ISO_C_BIND code error
- From: "mikael at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 7 Jan 2009 13:51:58 -0000
- Subject: [Bug fortran/35612] testsuite ISO_C_BIND code error
- References: <bug-35612-13225@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from mikael at gcc dot gnu dot org 2009-01-07 13:51 -------
(In reply to comment #4)
> For TARGET, I agree because the standard says about c_f_pointer:
> The value of CPTR shall not be the C address of a Fortran variable that does
> not have the TARGET attribute.
>
Hum, I don't agree with myself. Only the pointee shall have the TARGET
attribute.
Not the pointer. Thus, I think the testcase is OK as is.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35612