------- Comment #2 from w6ws at earthlink dot net 2008-04-27 13:24 ------- Subject: Re: Not allowing pointers to derived types in COMMON
burnus at gcc dot gnu dot org wrote: > ------- Comment #1 from burnus at gcc dot gnu dot org 2008-04-27 08:01 > ------- > gfortran's rejection is in line with g95, NAG f95, ifort, openf95, sunf95 and > ifort. On the other side are PGI and Salford/Silverfrost - who allow the pointer to reside in the COMMON block. > Additionally, I think the following also applies to pointers. ("my_wwsptr" is > of a derived type [albeit with pointer attribute].) > > "C589 (R558) If a common-block-object is of a derived type, it shall be a > sequence type (4.5.1) or a type with the BIND attribute and it shall have no > default initialization." 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. W. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36058