[Bug fortran/33310] New: Bind(C): Accepts PARAMETER with BIND(C) attribute

burnus at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Wed Sep 5 11:12:00 GMT 2007


I believe the following is invalid - combining PARAMETER with BIND(C), however,
gfortran does not reject this; if one tries to use-associate the parameter in
the main program, one gets an error.

module m
    use iso_c_binding
    implicit none
    TYPE, bind(C) :: the_distribution
        INTEGER(c_int) :: parameters(1)
    END TYPE the_distribution
    TYPE (the_distribution), parameter, bind(C) :: the_beta =
the_distribution((/0/))
end module m


-- 
           Summary: Bind(C): Accepts PARAMETER with BIND(C) attribute
           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
OtherBugsDependingO 32630
             nThis:


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



More information about the Gcc-bugs mailing list