This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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).

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]