This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Patch, Fortran] PR 47023: C_Sizeof: Rejects valid code
>> 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 Tobias privately), rejecting procedure pointers as
actual arguments of SIZEOF:
http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=180210
Patch includes documentation in intrinsic.texi (where I also fixed
another minor nit).
Cheers,
Janus