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

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

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