This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: SIGSEV in user-defined elemental function
- From: Daniel Franke <franke dot daniel at gmail dot com>
- To: fortran at gcc dot gnu dot org
- Cc: FX Coudert <fxcoudert at gmail dot com>
- Date: Tue, 21 Nov 2006 10:14:57 +0100
- Subject: Re: SIGSEV in user-defined elemental function
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:from:to:subject:date:user-agent:references:in-reply-to:cc:mime-version:content-type:content-transfer-encoding:content-disposition:message-id; b=PJrzf5+W+plcfzuAFU6Yj+7eQJCreodYkbh0ieRK6Z9huHOXCBHjWLSdQwYUydhM7OnlaiAxvl9gXQPTpQWXzoXNxhUJb4Y5YxkQ7zkqsmkbSXhzVogCzqm1h17ZhgzlcTt5KKF/C6uJPXKJ5yCz146UMKiitdXHqIHdLxXITGQ=
- References: <200611210127.26748.franke.daniel@gmail.com> <19c433eb0611202331j8db1a53m98ac37c1d5cda786@mail.gmail.com> <200611210944.25275.franke.daniel@gmail.com>
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