Segfault: is it a bug?
Salvatore Filippone
salvatore.filippone@uniroma2.it
Wed Feb 14 16:56:00 GMT 2007
Hi there,
The attached source code generates a rather spectacular segfault. The
funny thing is that if I change the access function msh_ to a
subroutine, it works. My understanding is that this is a bug; any kind
soul can confirm my code is standard conforming, in which case I will go
open a PR?
Thanks
Salvatore
[sfilippo@localhost NEMO]$ gfortran -v
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: ../gcc-4.2-20070207/configure --prefix=/usr/local/gcc42
--with-mpfr=/home/travel/GCC/BUILDS/mpfr
--with-gmp-lib=/home/travel/GCC/BUILDS/gmp/lib/
--with-gmp=/home/travel/GCC/BUILDS/gmp
Thread model: posix
gcc version 4.2.0 20070207 (prerelease)
[sfilippo@localhost NEMO]$ gfortran -o test_pnt test_pnt.f90
[sfilippo@localhost NEMO]$ ./test_pnt
Segmentation fault
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test_pnt.f90
Type: text/x-fortran
Size: 3497 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20070214/ef861b6f/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 1614 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20070214/ef861b6f/attachment-0001.bin>
More information about the Fortran
mailing list