public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/26791] New: Array reference out of bounds runtime error should print more information
@ 2006-03-21 23:31 jjcogliati-r1 at yahoo dot com
2006-03-21 23:36 ` [Bug fortran/26791] " pinskia at gcc dot gnu dot org
0 siblings, 1 reply; 2+ messages in thread
From: jjcogliati-r1 at yahoo dot com @ 2006-03-21 23:31 UTC (permalink / raw)
To: gcc-bugs
Take the program:
program bad_array
integer,dimension(8) :: array
array(9) = 123
end program bad_array
Compile with:
gfortran -g -fbounds-check -o bad_array bad_array.f90
Run:
./bad_array
Fortran runtime error: Array reference out of bounds
I would expect that this sould print the program location that caused the array
out of bounds error like:
Fortran runtime error: Array reference out of bounds at bad_array.f90:3
A workaround is to run in gdb and break on _gfortrani_runtime_error and then
look at the stack trace.
--
Summary: Array reference out of bounds runtime error should print
more information
Product: gcc
Version: 4.1.0
Status: UNCONFIRMED
Severity: enhancement
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: jjcogliati-r1 at yahoo dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26791
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug fortran/26791] Array reference out of bounds runtime error should print more information
2006-03-21 23:31 [Bug fortran/26791] New: Array reference out of bounds runtime error should print more information jjcogliati-r1 at yahoo dot com
@ 2006-03-21 23:36 ` pinskia at gcc dot gnu dot org
0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-03-21 23:36 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from pinskia at gcc dot gnu dot org 2006-03-21 23:36 -------
*** This bug has been marked as a duplicate of 23375 ***
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |DUPLICATE
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26791
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-03-21 23:36 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-03-21 23:31 [Bug fortran/26791] New: Array reference out of bounds runtime error should print more information jjcogliati-r1 at yahoo dot com
2006-03-21 23:36 ` [Bug fortran/26791] " pinskia at gcc dot gnu dot 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).