Re: [Patch, Fortran] PR 47023: C_Sizeof: Rejects valid code

2011-10-19 Thread Janus Weil
>> If I saw it correctly, one still needs to fix the vendor-extension SIZEOF >> for procedure pointers (it currently returns one byte!) > > Right. Actually I don't quite understand where that 1 byte comes from. I have just committed the patch from comment #23 of the PR (which has been approved by

Re: [Patch, Fortran] PR 47023: C_Sizeof: Rejects valid code

2011-10-18 Thread Janus Weil
>> here is another patch for PR47023, which takes care of comment #1, >> i.e. rejecting polymorphic variables in a C-binding context. >> >> Regtested on x86_64-unknown-linux-gnu. Ok for trunk? > > OK. Thanks for the patch. Thanks. Committed as r180130. > If I saw it correctly, one still needs to

Re: [Patch, Fortran] PR 47023: C_Sizeof: Rejects valid code

2011-10-18 Thread Tobias Burnus
On 10/17/2011 11:37 PM, Janus Weil wrote: here is another patch for PR47023, which takes care of comment #1, i.e. rejecting polymorphic variables in a C-binding context. Regtested on x86_64-unknown-linux-gnu. Ok for trunk? OK. Thanks for the patch. If I saw it correctly, one still needs to fi

[Patch, Fortran] PR 47023: C_Sizeof: Rejects valid code

2011-10-17 Thread Janus Weil
Hi all, here is another patch for PR47023, which takes care of comment #1, i.e. rejecting polymorphic variables in a C-binding context. It also adapts two functions (verify_c_interop,verify_c_interop_param) to the gfortran naming convention of prefixing public routines with 'gfc_', and fixes an er