https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79956
--- Comment #12 from Thomas Koenig <tkoenig at gcc dot gnu.org> ---
(In reply to Markus Trippelsdorf from comment #10)
> libgfortran/intrinsics/reshape_generic.c:253:21: warning: ‘sstride[0]’ may
> be used uninitialized in this function [-Wmaybe-uninitialized]
This one is probably due to
for (n = 0; n < sdim; n++)
{
scount[n] = 0;
sstride[n] = GFC_DESCRIPTOR_STRIDE(source,n);
...
and later
sstride0 = sstride[0] * size;
We know that sdim is at least one, but apparently the compiler does not.