do we expect compiler to catch this?

Thomas Koenig Thomas.Koenig@online.de
Thu Nov 17 20:11:00 GMT 2005


On Thu, Nov 17, 2005 at 11:23:11AM -0800, Steve Kargl wrote:

> program test
>    real, parameter :: pi = 3.14159e0
>    call func(pi)
> end program test

This is PR 18566 (if you try to change pi in the subroutine)
and the behavior is platform-dependent.  Some platforms
segfault, some silently change pi.



More information about the Fortran mailing list