[Bug fortran/60500] [4.8/4.9/5 Regression] Spurious warning on derived type initialization
mikael at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Mar 16 12:10:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60500
Mikael Morin <mikael at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mikael at gcc dot gnu.org
--- Comment #5 from Mikael Morin <mikael at gcc dot gnu.org> ---
(In reply to Richard Biener from comment #2)
> possibly the L.1 label is misplaced? At least the result would crash if
> malloc returned NULL.
>
Mmh, yes; it seems L.1 should come after the (default-)initialization of the
just allocated array.
There is nothing that can be done inside gfc_trans_allocate, because
initialization comes from a frontend-generated statement after the allocate
statement (introduced at revision r164305).
More information about the Gcc-bugs
mailing list