[Bug fortran/32601] New: [ISO Bind C] Access to private components not prevented

burnus at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Mon Jul 2 22:56:00 GMT 2007


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



More information about the Gcc-bugs mailing list