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/57141] New: Cannot change attributes of USE-associated intrinsic


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

             Bug #: 57141
           Summary: Cannot change attributes of USE-associated intrinsic
    Classification: Unclassified
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: roger.ferrer@bsc.es


Hi,

gfortran-4.8 (and 4.7 as well and possibly earlier versions too) complain with
this snippet.

The error message is not emitted if the declaration of R is uncommented.

! -- test.f90
MODULE M
    INTRINSIC :: NULL
    !! Uncommenting the following statement
    !! causes the error go away
    ! REAL, POINTER :: R(:) => NULL()
END MODULE M

MODULE M_INTERN
    USE M
    IMPLICIT NONE
    REAL, POINTER :: ARR(:) => NULL()
END MODULE M_INTERN
! -- end of test.f90

$ gfortran -c test.f90
test.f90:12.37:

    REAL, POINTER :: ARR(:) => NULL()
                                     1
Error: Cannot change attributes of USE-associated symbol null at (1)

Kind regards,


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