This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/34759] New: Assumed size array reference not allowed in SHAPE intrinsic, even though last subscript specified
- From: "dick dot hendrickson at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 Jan 2008 20:16:00 -0000
- Subject: [Bug fortran/34759] New: Assumed size array reference not allowed in SHAPE intrinsic, even though last subscript specified
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
With gfortran 4.3.0 20080109 I get an incorrect error message
"Error: 'source' argument of 'shape' intrinsic at (1) must not
be an assumed size array" with the following little test case
subroutine j_assumed_size(A,N)
dimension A(10,11,12,*)
k = shape(A(:,:,:,N))
l = shape(A(:,:,:,3))
end
I believe assumed size arrays are allowed provided the last subscript
is specified.
Dick Hendrickson
--
Summary: Assumed size array reference not allowed in SHAPE
intrinsic, even though last subscript specified
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: dick dot hendrickson at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34759