public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/56650] New: Odd error messages with C_SIZEOF
@ 2013-03-18  9:16 burnus at gcc dot gnu.org
  2013-03-18  9:23 ` [Bug fortran/56650] Odd error messages with C_SIZEOF for valid code burnus at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: burnus at gcc dot gnu.org @ 2013-03-18  9:16 UTC (permalink / raw)
  To: gcc-bugs


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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-03-27 11:24 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-18  9:16 [Bug fortran/56650] New: Odd error messages with C_SIZEOF burnus at gcc dot gnu.org
2013-03-18  9:23 ` [Bug fortran/56650] Odd error messages with C_SIZEOF for valid code burnus at gcc dot gnu.org
2013-03-26 11:23 ` burnus at gcc dot gnu.org
2013-03-27 11:23 ` burnus at gcc dot gnu.org
2013-03-27 11:24 ` burnus at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).