https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77504
Janne Blomqvist <jb at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jb at gcc dot gnu.org --- Comment #7 from Janne Blomqvist <jb at gcc dot gnu.org> --- I suppose another variant of this bug is: module foo contains subroutine bar(a) implicit none integer, dimension(:), intent(in) :: a integer, dimension(:), allocatable :: c c = a end subroutine bar end module foo ❯ gfortran -c -Wall test.f90 test.f90:8:0: c = a Warning: ‘c.offset’ is used uninitialized in this function [-Wuninitialized] test.f90:8:0: Warning: ‘c.dim[0].lbound’ is used uninitialized in this function [-Wuninitialized] test.f90:8:0: Warning: ‘c.dim[0].ubound’ is used uninitialized in this function [-Wuninitialized] test.f90:8:0: c = a Warning: ‘c.dim[0].lbound’ may be used uninitialized in this function [-Wmaybe-uninitialized] test.f90:8:0: Warning: ‘c.dim[0].ubound’ may be used uninitialized in this function [-Wmaybe-uninitialized] test.f90:8:0: Warning: ‘c.dim[0].ubound’ may be used uninitialized in this function [-Wmaybe-uninitialized] test.f90:8:0: Warning: ‘c.dim[0].lbound’ may be used uninitialized in this function [-Wmaybe-uninitialized]