USE ISO_C_BINDING, only: c_null_ptr, c_ptr type(c_ptr) :: t t = c_null_ptr print *, c_null_ptr, t end
should not be allowed (at least with -std=f2003) as type(c_ptr) has only private components. -- Summary: [ISO Bind C] Access to private components not prevented Product: gcc Version: 4.3.0 Status: UNCONFIRMED Keywords: accepts-invalid Severity: normal Priority: P3 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: burnus at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32601