This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC 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]

[Bug fortran/37486] alignment of data in COMMON blocks



------- 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


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