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: unassig...@gcc.gnu.org

        ReportedBy: roger.fer...@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,

Reply via email to