[Bug fortran/56305] New: passing array of character with len>1 to c_loc

valeryweber at hotmail dot com gcc-bugzilla@gcc.gnu.org
Wed Feb 13 11:24:00 GMT 2013


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56305

             Bug #: 56305
           Summary: passing array of character with len>1 to c_loc
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: minor
          Priority: P3
         Component: fortran
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: valeryweber@hotmail.com


Dear All
The following code compiles, but shouldnt it be rejected? 
V

program aaa
  use, intrinsic :: iso_c_binding
  type(c_ptr) :: p
  character(len=2),dimension(1), target :: c
  p=c_loc(c(1))
end program aaa



More information about the Gcc-bugs mailing list