------- Comment #3 from burnus at gcc dot gnu dot org 2008-04-27 15:30 ------- See also: http://groups.google.com/group/comp.lang.fortran/browse_thread/thread/773de8d5b57f8e20
(In reply to comment #2) > I am only concerned with the POINTER case. I am not placing a > derived type object in the COMMON block. I am only storing a > pointer to it. But still you want (at least potentially) to access the pointer target at different scopes. And then the type declaration needs to be the same (storage wise), which is only guaranteed for SEQUENCE. Additionally and more formally, the storage unit for a pointer is different if the type is different (16.4.3.1 Storage sequence, item (8)) and without SEQUENCE they describe different types [see 4.5.1.3 Determination of derived types]. Thus I maintain that this is invalid. I'm however less sure about using a derived type with default initializer and a pointer in a common. Let's see what will be the reply in comp.lang.fortran. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36058