https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82007
--- Comment #6 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> --- Created attachment 42992 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42992&action=edit A peliminary patch The attached patch allows the test cases to compile and run. Remaining is to formulate what checks we really do want to do at compile time and what to do for run time. For example, if a user has provided DTIO procedures, but the format statement does not contain a 'DT' specifier, what do we do? If the format string is in a variable, the situation can only be checked at run time.