This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libfortran/18924] segfault in dot_product with missing interface information
- From: "fxcoudert at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 21 May 2006 22:06:18 -0000
- Subject: [Bug libfortran/18924] segfault in dot_product with missing interface information
- References: <bug-18924-9515@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from fxcoudert at gcc dot gnu dot org 2006-05-21 22:06 -------
(In reply to comment #1)
> The code as given is not valid, but since we segfault at runtime even with
> -fbounds-check one can argue that this is a real deficiency.
With the inline dot_product on mainline, we now have:
$ gfortran dotprod.f90 && ./a.out
0.000000
$ gfortran dotprod.f90 -fbounds-check && ./a.out
Fortran runtime error: Array bound mismatch
--
fxcoudert at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |fxcoudert at gcc dot gnu dot
| |org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18924