This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/57141] New: Cannot change attributes of USE-associated intrinsic
- From: "roger.ferrer at bsc dot es" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 02 May 2013 08:13:34 +0000
- Subject: [Bug fortran/57141] New: Cannot change attributes of USE-associated intrinsic
- Auto-submitted: auto-generated
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,