@mhoye I had a good laugh at this. Not defending GCC here, I am all in favor for a languages that help to avoid errors in all stages.
Anyhow, the last line food be a give-away "%s" but in that it does a pretty bad job indeed.
And while lots of docs are garbage, how about to condone the usage of C/C++ in the first place?