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

Martin Sebor <msebor at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|2011-01-21 11:12:28         |2021-4-14
             Blocks|                            |24639
                 CC|                            |msebor at gcc dot gnu.org
      Known to fail|                            |10.2.0, 11.0, 4.6.0, 4.8.4,
                   |                            |4.9.4, 5.5.0, 6.4.0, 7.2.0,
                   |                            |8.3.0, 9.1.0

--- Comment #3 from Martin Sebor <msebor at gcc dot gnu.org> ---
Reconfirmed with GCC 11 and the output below.

$ gcc -O2 -S -Wall pr47386.f90
pr47386.f90:9:35:

    9 |     real, allocatable   :: W(:,:,:) ! Temporary array 2
      |                                   ^
Warning: ‘w.dim[1].stride’ may be used uninitialized in this function
[-Wmaybe-uninitialized]
pr47386.f90:18:12:

   18 |        W = 0
      |            ^
Warning: ‘w.dim[0].ubound’ may be used uninitialized in this function
[-Wmaybe-uninitialized]
pr47386.f90:9:35:

    9 |     real, allocatable   :: W(:,:,:) ! Temporary array 2
      |                                   ^
Warning: ‘w.dim[2].ubound’ may be used uninitialized in this function
[-Wmaybe-uninitialized]
pr47386.f90:9:35: Warning: ‘w.offset’ may be used uninitialized in this
function [-Wmaybe-uninitialized]
pr47386.f90:9:35: Warning: ‘w.dim[2].stride’ may be used uninitialized in this
function [-Wmaybe-uninitialized]
pr47386.f90:9:35: Warning: ‘w.dim[1].ubound’ may be used uninitialized in this
function [-Wmaybe-uninitialized]


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=24639
[Bug 24639] [meta-bug] bug to track all Wuninitialized issues

Reply via email to