allocate on assignment problem
marco restelli
mrestelli@gmail.com
Thu Sep 4 07:55:00 GMT 2008
On Thu, Sep 4, 2008 at 9:15 AM, Daniel Kraft <d@domob.eu> wrote:
> marco restelli wrote:
>>
>> Dear list,
>> the attached code compiles with gfortran but produces segmentation
>> fault at execution. Is this a gfortran problem in the allocation on
>> assignment or is it me missing something?
>
> Hi Marco,
>
> I don't think allocation on assignment is implemented in gfortran, see
> http://gcc.gnu.org/wiki/Fortran2003Status and thus you would try to write
> into an unallocated array and cause the segfault. I'm not 100% sure about
> this, however.
>
Daniel,
I have the impression that I saw something about gfortran
supporting this feature, but now the only reference I can find is this
post
http://groups.google.com/group/comp.lang.fortran/msg/7c63fef65ba5ea70
which is not really conclusive. If reallocation is not supported at
all, then I see you point.
Cheers,
Marco
More information about the Fortran
mailing list