>From Richard Maine, editor of the F2003 standard subroutine string_comp integer, parameter :: map(0:50) = 0 integer :: i i = map(42) end subroutine string_comp
In file bug2.f90:4 i = map(42) 1 Error: Incompatible ranks 0 and 1 in assignment at (1) Note that it works without the parameter attribute. -- Summary: Incorrect rank with PARAMETER and array element. Product: gcc Version: 4.0.0 Status: UNCONFIRMED Severity: normal Priority: P2 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: sgk at troutmask dot apl dot washington dot edu CC: gcc-bugs at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19926