[Bug fortran/56650] New: Odd error messages with C_SIZEOF

burnus at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Mar 18 09:16:00 GMT 2013


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

             Bug #: 56650
           Summary: Odd error messages with C_SIZEOF
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Keywords: diagnostic
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: burnus@gcc.gnu.org


As PR 56649, this is another issue which causes compilation problems with MPICH
(for its MPI 3 implementation).


Compiling the program below gives:

  integer,parameter :: MPI_STATUS_SIZE = c_sizeof(MPI_Status_C_obj)
  1
Error: Unclassifiable statement at (1)



Or for the variant:

                    = c_sizeof(MPI_Status_C_obj)*8/bit_size(0)
                                                             1
Error: Invalid character in name at (1)



module m
  use iso_c_binding, only: c_sizeof, c_int
  implicit none

  integer(c_int), bind(C) :: MPI_Status_C_obj
  integer,parameter :: MPI_STATUS_SIZE = c_sizeof(MPI_Status_C_obj)
!  integer,parameter :: MPI_STATUS_SIZE2 &
!                    = c_sizeof(MPI_Status_C_obj)*8/bit_size(0)
end module m



More information about the Gcc-bugs mailing list