SIGSEV in user-defined elemental function
Daniel Franke
franke.daniel@gmail.com
Tue Nov 21 09:46:00 GMT 2006
On Tuesday 21 November 2006 09:44, you wrote:
> On Tuesday 21 November 2006 08:31, François-Xavier Coudert wrote:
> > I don't see why func wouldn't be called. And when it's called, then
> > trying to use t%p when t is NULL is certainly the reason of your
> > segfault.
Just as an afterthought,
INTEGER, DIMENSION(), POINTER :: p
p => null()
WRITE(*,*) size(p), lbound(p), ubound(p)
should print "0, X, X", where is X something reasonable.
gfortran:
1 1 -1076029184
ifort
0 1 0
So, the problem might not be the ELEMENTAL function at all?
Daniel
More information about the Fortran
mailing list