Pass a scalar actual argument into an array dummy argument

· Fortran Lang Discourse · Sept. 15, 2026, 12:39 a.m.
Summary
This blog post discusses the non-standard practice of passing a scalar variable into a procedure expecting an array argument in Fortran. It highlights the need for a special overload procedure to handle scalar cases when updating to a new compiler version that enforces stricter standards. The author provides clear examples demonstrating the issue and their solution by creating a generic interface to accommodate scalar inputs, raising a question about compiler treatment of scalar arguments as arrays.