Pointer initialization error under gfortran 4.6

Janus Weil janus@gcc.gnu.org
Mon Aug 30 20:31:00 GMT 2010


Hi Andrew,

> I've reduced this to a minimal case which reproduces the error (although not
> the ICE). The code is attached:
>
> $ gfortran -c objects.merger_trees.F90 -o objects.merger_trees.o
> <During initialization>
>
> Error: Pointer initialization target at (1) must have the SAVE attribute

I can canfirm this error at r163648. Do you remember the svn revision
of the build which worked? Anyway, there haven't been that many
commits in the front end since Friday, so we should be able to figure
out which one introduced this regression. Let me make a guess:

http://gcc.gnu.org/viewcvs?view=revision&revision=163631

Although a more realistic candidate might be:

http://gcc.gnu.org/viewcvs?view=revision&revision=163445

Are you sure it was working last Friday?


Thanks for reporting,
Janus



More information about the Fortran mailing list