public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/57141] New: Cannot change attributes of USE-associated intrinsic
@ 2013-05-02  8:13 roger.ferrer at bsc dot es
  2013-05-02 11:13 ` [Bug fortran/57141] " dominiq at lps dot ens.fr
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: roger.ferrer at bsc dot es @ 2013-05-02  8:13 UTC (permalink / raw)
  To: gcc-bugs


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,


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

end of thread, other threads:[~2021-03-18 17:50 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-02  8:13 [Bug fortran/57141] New: Cannot change attributes of USE-associated intrinsic roger.ferrer at bsc dot es
2013-05-02 11:13 ` [Bug fortran/57141] " dominiq at lps dot ens.fr
2013-05-03  8:59 ` burnus at gcc dot gnu.org
2013-05-05 14:04 ` burnus at gcc dot gnu.org
2013-05-05 14:05 ` burnus at gcc dot gnu.org
2021-03-16 10:29 ` aasdelat at yahoo dot es
2021-03-16 11:19 ` burnus at gcc dot gnu.org
2021-03-18 17:50 ` aserranot at aemet dot es

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).