re PR fortran/51250 (Bug with SUM(,dim,mask))