https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108369
anlauf at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |WAITING Last reconfirmed| |2023-01-11 Ever confirmed|0 |1 --- Comment #1 from anlauf at gcc dot gnu.org --- (In reply to Ben Brewer from comment #0) > The most critical of these behavioural changes is that the NIST F77 test > suite fails on FM509.FOR with the following: > "Error: Actual argument contains too few elements for dummy argument > ‘c1d001’ (19/48) at (1)" The error message refers to: SUBROUTINE SN512(C1D001,CVD001) CHARACTER C1D001(6)*8,CVD001*8 CVD001 = C1D001(1) RETURN END and the caller is: CALL SN512(C1N001(5)(2:9),CVCOMP) which passes an array of size 1. Workaround: either use -std=legacy or fix the above argument declaration to: CHARACTER C1D001(*)*8,CVD001*8