On 11/23/24 10:59 AM, Harald Anlauf wrote:
Am 23.11.24 um 19:35 schrieb Jerry D:
Suggested docs change regarding fix to PR88052.
See attached diff file.
OK to push?
Regards,
Jerry
Jerry,
for clarification: isn't it the language standard option used when
compiling the main that is relevant? The main might be compiled
separately from a module containing the offending legacy code,
where it may or may not be diagnosed at compile time.
Otherwise OK from my side.
Thanks,
Harald
Indeed, only the -std= specified on the main program unit is relevant.
I will clarify this in my description. I am working on a separate patch
that will check the format strings at compile time when possible. We do
not check format strings in character variables at compile time and I am
not planning to this. (It might be possible in a translation or resolve
stage if the character variable is a constant).
I will update and push this doc change.
Thanks Herald.