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: "dominiq at lps dot ens.fr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 07 Nov 2015 11:10:10 +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
Dominique d'Humieres <dominiq at lps dot ens.fr> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2015-11-07
Ever confirmed|0 |1
--- Comment #3 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
Compiling the first three tests with 4.8.5 or 4.9.3 and -Wrealloc-lhs-all gives
the following error
x = t2()
1
Error: No initializer for component 'a' given in the structure constructor at
(1)!
i.e., no ICE. Am I correct to understand that this error is bogus for Fortran
2008 (at least)? The last test compiles but segfault at run time.
I confirm the ICE for 5.2.0 and trunk (6.0).
A first change occurred between revisions r219067 (2014-12-25, error) and
r219174+two patches (2015-01-04, no error, segfault at run time). A second
change occurred between revisions r219763 (2015-01-16, no error, segfault) and
r219772+one patch (2015-01-16, ICE).