This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/68225] ICE with -Wrealloc-lhs-all on structure constructor with allocatable components
- From: "gerhard dot steinmetz dot fortran at t-online dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 09 Nov 2015 19:00:55 +0000
- Subject: [Bug fortran/68225] ICE with -Wrealloc-lhs-all on structure constructor with allocatable components
- Auto-submitted: auto-generated
- References: <bug-68225-4 at http dot gcc dot gnu dot org/bugzilla/>
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).