public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/49011] New: Wrong repeat count in error message for REPEAT intrinsic
@ 2011-05-16  9:08 thenlich at users dot sourceforge.net
  2011-05-16  9:32 ` [Bug fortran/49011] " dominiq at lps dot ens.fr
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: thenlich at users dot sourceforge.net @ 2011-05-16  9:08 UTC (permalink / raw)
  To: gcc-bugs

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: unassigned@gcc.gnu.org
        ReportedBy: thenlich@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)


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-02-03 22:31 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-16  9:08 [Bug fortran/49011] New: Wrong repeat count in error message for REPEAT intrinsic thenlich at users dot sourceforge.net
2011-05-16  9:32 ` [Bug fortran/49011] " dominiq at lps dot ens.fr
2011-05-16 11:13 ` burnus at gcc dot gnu.org
2012-02-03 22:31 ` bdavis at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).