This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/16400] New: Invalid usage of assumed-size arrays is not rejected
- From: "lei at il dot ibm dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 7 Jul 2004 06:51:09 -0000
- Subject: [Bug fortran/16400] New: Invalid usage of assumed-size arrays is not rejected
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
The following code should trigger an error message (currently
accepted).
subroutine foo(s)
integer s(*)
s = 1
print*, s
end
The 2003 Standard says in 5.1.2.5.4: "...An assumed-size
array name shall not be written as a whole array reference
except as an actual argument in a procedure reference for which
the shape is not required."
--
Summary: Invalid usage of assumed-size arrays is not rejected
Product: gcc
Version: 3.5.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: lei at il dot ibm dot com
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16400