[Bug fortran/77504] [7/8/9 Regression] "is used uninitialized" with allocatable string and array constructors

tkoenig at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sat Mar 23 15:48:00 GMT 2019


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

Thomas Koenig <tkoenig at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |7.5
            Summary|"is used uninitialized"     |[7/8/9 Regression] "is used
                   |with allocatable string and |uninitialized" with
                   |array constructors          |allocatable string and
                   |                            |array constructors

--- Comment #13 from Thomas Koenig <tkoenig at gcc dot gnu.org> ---
(In reply to Dominique d'Humieres from comment #11)
> The test in comment 7 compiles without any warning with gfortran 6.4.1 and
> before.
> 
> In a similar way the original test starts to give the warnings
> 
> pr77504.f90:10:0: Warning: 'help_text.dim[0].lbound' is used uninitialized
> in this function [-Wuninitialized]
> pr77504.f90:10:0: Warning: 'help_text.dim[0].ubound' is used uninitialized
> in this function [-Wuninitialized]
> 
> for gfortran 7 and above.

So, a regression then.


More information about the Gcc-bugs mailing list