Adjustable array segfaults

Scott Brown scottb@uci.edu
Mon Aug 16 02:17:00 GMT 2004


Hi,

When I have one subroutine that passes an adjustable array to another 
subroutine, I get a segfault.  I have attached minimal source code to 
reproduce the bug.  I am using gcc-3.5 on Mac OS X 10.3 (full version 
details below).  Same code compiles fine using, say, intel's ifc on 
linux/x86.

 > gfortran -v
Reading specs from 
/usr/local/lib/gcc/powerpc-apple-darwin6.8/3.5-tree-ssa-ln/specs
Configured with: ../gcc/configure --enable-threads=posix 
--enable-languages=c,f95
Thread model: posix
gcc version 3.5-tree-ssa-lno 20040811 (merged 20040718)


Thanks in advance for your help.

Scott Brown.



-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: a.f90
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20040816/fb7c9efb/attachment.f90>


More information about the Fortran mailing list