The following prints: INTEGER, PARAMETER, DIMENSION(10) :: A = [(i, i = 1,10)] 1 Error: Magnitude of second argument of ISHFTC exceeds third argument at (1)
However, the error actually occurs in the second line. NAG f95 gets this right: Error: fhj.f90, line 2: Element 6 of SHIFT array (6) to intrinsic ISHFTC out of range (-5:5) INTEGER, PARAMETER, DIMENSION(10) :: A = [(i, i = 1,10)] INTEGER, PARAMETER, DIMENSION(10) :: B = ISHFTC(3, A, 5) !ICE end -- Summary: "wrong" line shown in error message for parameter Product: gcc Version: 4.4.0 Status: UNCONFIRMED Keywords: diagnostic Severity: normal Priority: P3 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: burnus at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35849