This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/37486] alignment of data in COMMON blocks
- From: "dominiq at lps dot ens dot fr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 Sep 2008 21:31:49 -0000
- Subject: [Bug fortran/37486] alignment of data in COMMON blocks
- References: <bug-37486-16146@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #8 from dominiq at lps dot ens dot fr 2008-09-12 21:31 -------
> If I recall correctly, the commons do not need to have the same size
5.7.2.5 Differences between named common and blank common (F2008, 5.5.2.4 for
f95)
...
? Named common blocks of the same name shall be of the same size in all scoping
units of a program in which they appear, but blank common blocks may be of
different sizes.
For the test in comment #6, the common should be blank one to make the test
valid (detected with
-Wall).
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37486