This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Patch, fortran] PR31163 - SAVEd derived types with ALLOCATABLE components don't work
Andrew Pinski wrote:
> On 3/14/07, Tobias Burnus <burnus@net-b.de> wrote:
>> static struct foo t = {};
>> if ((real4[0:] *) t.x.data != 0B)
> The t variable is still zero initialized as defined by either {} or by
> the case of being a static variable.
That means we could optimize
static struct foo_type f_a = {.mv={.data=0B}};
to
static struct foo_type f_a = {};
for pointers?
Tobias