[Bug fortran/44529] New: [F03] array allocation with SOURCE
janus at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sun Jun 13 20:52:00 GMT 2010
First example:
integer, allocatable :: a(:), b(:)
allocate (a, source = b)
end
This is rejected with
allocate (a, source = b)
1
Error: Array specification required in ALLOCATE statement at (1)
although it is valid (cf. F08:C633).
Second example:
integer, allocatable :: a(:)
integer :: b(1:3)
allocate (a, source = b)
end
This results in an ICE.
--
Summary: [F03] array allocation with SOURCE
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: janus at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44529
More information about the Gcc-bugs
mailing list