http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49011
Summary: Wrong repeat count in error message for REPEAT intrinsic Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran AssignedTo: unassig...@gcc.gnu.org ReportedBy: thenl...@users.sourceforge.net If the REPEAT intrinsic is given a negative NCOPIES argument at runtime, in the resulting error message an erraneous value is printed. Example: program test_repeat integer :: i = -1 print *, repeat("x", i) end program test_repeat $ ./a.out At line 3 of file test_repeat.f90 Fortran runtime error: Argument NCOPIES of REPEAT intrinsic is negative (its value is 4294967295) Expected result: At line 3 of file test_repeat.f90 Fortran runtime error: Argument NCOPIES of REPEAT intrinsic is negative (its value is -1)