https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96312
Thomas Koenig <tkoenig at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|Reallocation on assignment |[10/11 Regression] |uses undefined variables |Reallocation on assignment | |uses undefined variables Target Milestone|--- |9.4 --- Comment #2 from Thomas Koenig <tkoenig at gcc dot gnu.org> --- $ ~/Gcc/9-bin/gcc/f951 -quiet -O -Wall modc.f90 $ ~/Gcc/10-bin/gcc/f951 -quiet -O -Wall modc.f90 modc.f90:9:0: 9 | tmp = matmul(transpose(arr), oarr) | Warning: 'tmp.dim[0].lbound' is used uninitialized in this function [-Wuninitialized] modc.f90:9:0: Warning: 'tmp.dim[0].ubound' is used uninitialized in this function [-Wuninitialized] $ ~/Gcc/trunk-bin/gcc/f951 -quiet -O -Wall modc.f90 modc.f90:9:0: 9 | tmp = matmul(transpose(arr), oarr) | Warning: 'tmp.dim[0].lbound' is used uninitialized [-Wuninitialized] modc.f90:7:44: 7 | real, allocatable, dimension(:) :: tmp | ^ note: 'tmp' declared here modc.f90:9:0: 9 | tmp = matmul(transpose(arr), oarr) | Warning: 'tmp.dim[0].ubound' is used uninitialized [-Wuninitialized] modc.f90:7:44: 7 | real, allocatable, dimension(:) :: tmp | ^ note: 'tmp' declared here