Simple elemental sequence association?

In legacy code, f77 and earlier, you could pass an array element actual argument to a scalar dummy argument or to an array dummy argument. But it was never allowed to pass a scalar actual argument to an array dummy argument, not even to an array of size one. Many fortran compilers would warn you if you did this, along with utilities like FNTCHK, but there were many cases where it was not possible for the compiler to detect this kind of error. Now in modern fortran, routines that have explicit interfaces help the compiler to detect more of these errors. I don’t think there are any work arounds for these types of errors, you just have to fix the code. This is different from rank mismatches for arrays. Legacy code relied on storage sequence association because there was no ALLOCATE statement or automatic array facility that would provide arrays of the correct size or temporary work arrays of the right size. Again, this problem is now solved with modern fortran.