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

dominiq at lps dot ens.fr gcc-bugzilla@gcc.gnu.org
Sat Mar 23 13:52:00 GMT 2019


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

--- Comment #11 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
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.


More information about the Gcc-bugs mailing list