[Bug fortran/68225] ICE with -Wrealloc-lhs-all on structure constructor with allocatable components

gerhard.steinmetz.fortran@t-online.de gcc-bugzilla@gcc.gnu.org
Mon Nov 9 19:01:00 GMT 2015


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68225

--- Comment #4 from Gerhard Steinmetz <gerhard.steinmetz.fortran@t-online.de> ---
>
> Am I correct to understand that this error is bogus for Fortran 2008 (at least)? 

That feature is new in F2008 :
A structure constructor can omit the value for an allocatable component.


Further investigations show, that analogous examples with allocatable
arrays are correct (see examples below). Therefore, basically it's an
issue with allocatable scalars (of any type).


More information about the Gcc-bugs mailing list