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