This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/21256] New: Illegal use of assumed-sized array in an array expression
- From: "kargl at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 Apr 2005 18:48:28 -0000
- Subject: [Bug fortran/21256] New: Illegal use of assumed-sized array in an array expression
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Gfortran is not checking if an assumed sized array is used correctly
in an array expression. Gfortran compiles the following without an
error or warning
subroutine e(a)
real, intent(out) :: a(*)
a = 1.e0
end subroutine
NAG's compiler issues
kargl[210] f95 -c e.f90
Error: e.f90, line 3: Invalid appearance of assumed-size array name A
[f95 error termination]
which is confirmed by Lahey's web based Fortran checker.
--
Summary: Illegal use of assumed-sized array in an array
expression
Product: gcc
Version: 4.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: kargl at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21256