This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libfortran/18924] segfault in dot_product with missing interface information



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]