------- Comment #1 from burnus at gcc dot gnu dot org 2009-05-11 08:07 ------- Without heavily thinking about it:
> print *,public_var_with_private_type%i Seems to be valid in Fortran 2003 (but not in 2003). The components are not PRIVATE and thus accessibly, even if the TYPE declaration is not accessible. (I think one only needs the TYPE to declare new variables of this type not to access components of existing entities of that type.) > j = x%ppc() Seems to be valid: The PPC has an explicit interface and thus there is no need for implicit typing. Thus I would reason that g95, ifort and NAG (assuming Juergen Reuter is using it) are correct in accepting it. -- I can try to find it in the standard, but it is not a simple constraint which one can find but it is rather written between the lines. -- burnus at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |burnus at gcc dot gnu dot | |org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40089