------- Comment #1 from burnus at gcc dot gnu dot org  2009-02-19 15:37 -------
I now asked at c.l.f but so far there was no direct pointer to the standard. 
http://groups.google.com/group/comp.lang.fortran/browse_thread/thread/695d799c2e81b1b3

I think (in line with the replies in c.l.f) that

"C517 (R501) The SAVE attribute shall not be specified for an object that is in
             a common block [...]"

plus some wording in the storage association part of the standard implies that
an object which is equivalent to a common object is also itself a common
object.

If I read Tim's reply correctly, ifort has only a warning since the SAVE does
not matter: COMMON block variables are always in the static memory ("SAVE"). 

Still, I would follow sunf95/openf95/pathf95 (which all seem to have a common
linage) and print an error and not a warning.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39239

Reply via email to