User account creation filtered due to spam.
In Fortran one can specify the intent of variables thus if all arguments have INTENT(IN) then GCC should be able to detect that alist in the call to cshift is uninitialized.
This depends on the middle end support of intents (PR31094) plus using these in gfortran.
Example (using an intrinsic function):
integer :: alist(4)
end program testcshft
Still no warning at revision 200371.
Several(?) C duplicates exist which implicitely suggest a similar attribute.
void bar (int *);
void foo ()
if we can annotate the first arg of 'bar' as "intent in" (aka, should be
fully(!) initialized) then we can warn on this use.