https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69064
--- Comment #48 from kargl at gcc dot gnu.org --- Fairly trivial to fix once one finds F2003, p. 126. A variable in a specification expression shall have its type and type parameters, if any, specified by a previous declaration in the same scoping unit, by the implicit typing rules in effect for the scoping unit, or by host or use association. Note, the fix requires adjusting 2 testcases for new error conditions and fixing 1 testcase that actually has invalid code.