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: Pointer initialization error under gfortran 4.6


>> > 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?
>
> Yes - it was compiling successfully over the weekend (this is a code I'm
> migrating from v4.4 to v4.6 to make use of the OOP features). I did an "svn
> up" this morning and recompiled gcc and now it won't compiler. I'm 99% sure I
> didn't change anything in my code since it last successfully compiled.
>
> I'll try to isolate the revision that caused the problem - beginning with
> those you mention above.

Actually there is no need for that - the fix is easy ....

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45456

I'll commit shortly (hope this also fixes the ICE for you).

Cheers,
Janus


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