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

--- Comment #5 from janus at gcc dot gnu.org 2011-08-14 12:07:55 UTC ---
(In reply to comment #2)
> ifort rejects the original test case with:
> 
> error #6756: A COMMON block data object must not be an automatic object.   [Z]
>   common n,z
> -----------^

ifort's error message is apparently based on this restriction in the F08
standard:

"C5100 (R569) A common-block-object shall not be a dummy argument, a result
variable, an allocatable variable, a derived-type object with an ultimate
component that is allocatable, a procedure pointer, an automatic object, a
variable with the BIND attribute, an unlimited polymorphic pointer, or a
coarray."

This is what really makes the original test case invalid.

Reply via email to