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: [Patch, Fortran] PR 45507: [4.6 Regression] Bogus Error: Can't convert TYPE(c_ptr) to INTEGER(4)


>> here is the fix for a regression which was introduced by my recent
>> patch for ALLOCATE with MOLD (r163744). The problem was caused by the
>> fact that I moved the code which generated the default initializers
>> from 'resolve_allocate_expr' to 'gfc_trans_allocate'. To fix it, I'm
>> moving the code back and put the generated initializer into
>> code->expr3 (which is otherwise used for SOURCE or MOLD), so that it
>> is available in 'gfc_trans_allocate'.
>>
>> The patch was regtested on x86_64-unknown-linux-gnu. Ok for trunk?
>>
>
> OK.

Thanks, Steve. Committed as r163856.

Cheers,
Janus


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