This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/24706] New: Accepts non-constant length arrays in derived types
- From: "jakub at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 7 Nov 2005 13:17:25 -0000
- Subject: [Bug fortran/24706] New: Accepts non-constant length arrays in derived types
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
subroutine foo (n)
integer :: n
type bar
integer :: x (n)
end type bar
type (bar) :: q
q%x = 6
end subroutine foo
should be rejected. If an array in derived type doesn't have POINTER
attribute,
it shall be explicit shape with constant bounds, if it has POINTER attribute,
it must be deferred shape array.
--
Summary: Accepts non-constant length arrays in derived types
Product: gcc
Version: 4.1.0
Status: UNCONFIRMED
Keywords: accepts-invalid
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: jakub at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24706