This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran 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]

Re: SIGSEV in user-defined elemental function


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


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