public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/53379] New: [4.7 Regression] No backtrace generated for array bounds violation
@ 2012-05-16 17:17 anlauf at gmx dot de
  2012-05-16 20:30 ` [Bug fortran/53379] " anlauf at gmx dot de
                   ` (27 more replies)
  0 siblings, 28 replies; 29+ messages in thread
From: anlauf at gmx dot de @ 2012-05-16 17:17 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53379

             Bug #: 53379
           Summary: [4.7 Regression] No backtrace generated for array
                    bounds violation
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: anlauf@gmx.de


With gfortran 4.6.2 I got a useful traceback for the program given below:

% gfortran -g -fbacktrace -fcheck=all gfcbug119.f90
% ./a.out 
At line 8 of file gfcbug119.f90
Fortran runtime error: Index '-1' of dimension 1 of array 'k' below lower bound
of 1

Backtrace for this error:
  + function foo (0x80486F4)
    at line 8 of file gfcbug119.f90
  + function gfcbug119 (0x80487D0)
    at line 4 of file gfcbug119.f90
  + /lib/libc.so.6(__libc_start_main+0xf3) [0xb73b7003]

Version 4.7 only produces:
At line 8 of file gfcbug119.f90
Fortran runtime error: Index '-1' of dimension 1 of array 'k' below lower bound
of 1


So, unfortunately no backtrace anymore. :-(
I'll try to figure out what's going wrong.

program gfcbug119
  implicit none
  integer :: k(10)
  call foo (k,-1)
contains
  subroutine foo (k,i)
    integer, intent(in) :: k(:), i
    print *, k(i)
  end subroutine foo
end program gfcbug119


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

end of thread, other threads:[~2015-09-05  6:55 UTC | newest]

Thread overview: 29+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-05-16 17:17 [Bug fortran/53379] New: [4.7 Regression] No backtrace generated for array bounds violation anlauf at gmx dot de
2012-05-16 20:30 ` [Bug fortran/53379] " anlauf at gmx dot de
2012-05-18  7:36 ` [Bug fortran/53379] [4.7/4.8 " jb at gcc dot gnu.org
2012-05-18  7:43 ` burnus at gcc dot gnu.org
2012-05-18 14:46 ` jb at gcc dot gnu.org
2012-05-18 15:04 ` anlauf at gmx dot de
2012-05-29 14:40 ` rguenth at gcc dot gnu.org
2012-05-31 19:41 ` anlauf at gmx dot de
2012-05-31 19:46 ` anlauf at gmx dot de
2012-05-31 19:47 ` anlauf at gmx dot de
2012-06-14  8:49 ` rguenth at gcc dot gnu.org
2012-09-20 10:27 ` jakub at gcc dot gnu.org
2013-02-20 21:21 ` jb at gcc dot gnu.org
2013-04-11  8:00 ` [Bug fortran/53379] [4.7/4.8/4.9 " rguenth at gcc dot gnu.org
2013-12-29 11:55 ` dominiq at lps dot ens.fr
2014-06-12 13:45 ` [Bug fortran/53379] [4.7/4.8/4.9/4.10 " rguenth at gcc dot gnu.org
2014-12-02 11:59 ` [Bug fortran/53379] [4.8/4.9/5 " Joost.VandeVondele at mat dot ethz.ch
2014-12-04 21:05 ` anlauf at gmx dot de
2014-12-05  8:46 ` Joost.VandeVondele at mat dot ethz.ch
2014-12-19 13:28 ` jakub at gcc dot gnu.org
2015-06-23  8:22 ` [Bug fortran/53379] [4.8/4.9/5/6 " rguenth at gcc dot gnu.org
2015-06-26 19:58 ` [Bug fortran/53379] [4.9/5/6 " jakub at gcc dot gnu.org
2015-06-26 20:29 ` jakub at gcc dot gnu.org
2015-08-31 16:55 ` Joost.VandeVondele at mat dot ethz.ch
2015-08-31 21:12 ` fxcoudert at gcc dot gnu.org
2015-09-04 22:04 ` jb at gcc dot gnu.org
2015-09-04 22:17 ` jb at gcc dot gnu.org
2015-09-04 22:20 ` jb at gcc dot gnu.org
2015-09-05  6:55 ` Joost.VandeVondele at mat dot ethz.ch

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).