This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/36497] New: USE association, cray pointers and error checking
- From: "burnus at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 11 Jun 2008 13:59:46 -0000
- Subject: [Bug fortran/36497] New: USE association, cray pointers and error checking
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
"gfortran -fcray-pointer" accepts the following program while "ifort" rejects
it with:
Error: line 11: The attributes of this name conflict with those made accessible
by a USE statement. [X]
If one comments the Cray pointer out, gfortran prints:
Error: Symbol 'x' at (1) already has basic type of INTEGER
Expected:
a) gfortran also detects this problem when using Cray pointers
b) The error message is made clearer by pointing to the module
module test
integer(8) ipt, x
pointer (ipt, x)
end module
program bar
use test
! implicit none
integer(8) x
x = 2
print *,x
end
--
Summary: USE association, cray pointers and error checking
Product: gcc
Version: 4.4.0
Status: UNCONFIRMED
Keywords: accepts-invalid, diagnostic
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: burnus at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36497