This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/51308] New: PARAMETER attribute conflicts with SAVE attribute


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

             Bug #: 51308
           Summary: PARAMETER attribute conflicts with SAVE attribute
    Classification: Unclassified
           Product: gcc
           Version: 4.6.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: matthias.moeller@math.tu-dortmund.de


module mymod
  use iso_c_binding
  implicit none

  private
  public :: c_ptr
  public :: c_null_ptr

end module mymod


does not compile and gives the following error

$> gfortran -c test.f90 
test.f90:7.22:

  public :: c_null_ptr
                      1
Error: PARAMETER attribute conflicts with SAVE attribute in 'c_null_ptr' at (1)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]