[Bug fortran/84924] Erroneous error in C_F_POINTER
dominiq at lps dot ens.fr
gcc-bugzilla@gcc.gnu.org
Fri Mar 23 12:20:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84924
Dominique d'Humieres <dominiq at lps dot ens.fr> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |WAITING
Last reconfirmed| |2018-03-23
Ever confirmed|0 |1
--- Comment #4 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
Is the following patch OK?
return false;
}
- if (!is_c_interoperable (fptr, &msg, false, true))
+ if (fptr->rank > 0 && !is_c_interoperable (fptr, &msg, false, true))
return gfc_notify_std (GFC_STD_F2008_TS, "Noninteroperable array FPTR "
"at %L to C_F_POINTER: %s", &fptr->where, msg);
More information about the Gcc-bugs
mailing list