[Patch, Fortran] PR 45044 - Named common: Different size diagnostics
Steve Kargl
sgk@troutmask.apl.washington.edu
Tue Aug 30 21:40:00 GMT 2011
On Tue, Aug 30, 2011 at 11:31:38PM +0200, Tobias Burnus wrote:
> Named common blocks are required to have the same size in all files and
> scopes. gfortran was warning before when the size was extended, but not
> when a smaller common block followed a larger common block with the same
> name.
>
> This patch adds now a non-equal check and also mentions the byte size. I
> was thinking of adding another ref to point to the first common block,
> but my approach did not work (cf. PR comment 4) - besides, I find error
> messages with two loci harder to read.
>
> Build and regtested on x86-64-linux.
> OK for the trunk?
>
Looks ok to me.
--
Steve
More information about the Fortran
mailing list