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