more aliasing errors

Janne Blomqvist jblomqvi@cc.hut.fi
Sat Mar 18 20:55:00 GMT 2006


On Sat, Mar 18, 2006 at 02:33:05PM -0500, Jack Howarth wrote:
>         Can someone confirm this as an aliasing violation? The libfft code
> in xplor-nih has a call of the form...
> 
> CALL CFFTF1 (N,C,WSAVE,WSAVE(IW1),WSAVE(IW2))
> 
> ...in libfft where the calling routine has declared...
> 
> DIMENSION       C(1)       ,WSAVE(1)
> 
> I am assuming this is an aliasing violation because the array WSAVE
> as well as elements of the array are being passed as arguments to
> the call to CFFTF1. Is this a correct?

Since it's accessing an array out of bounds, the code is non-standard
and thus the standard doesn't say anything about how it should behave.

And yes, even without that, the call to cfftf1 is non-standard.

-- 
Janne Blomqvist
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 185 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20060318/455a36a1/attachment.sig>


More information about the Fortran mailing list