https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97817
--- Comment #4 from jim at meyering dot net ---
Thanks for explaining. It would be nice if the diagnostic were to say something
along the lines of "... writing into a region whose size may be as low as N".
Given the wording of the current diagnost
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97817
--- Comment #1 from jim at meyering dot net ---
I confirmed this happens both with the very latest built from git: gcc version
11.0.0 20201113 (experimental) (GCC), and Fedora 32's gcc version 10.2.1
20201016 (Red Hat 10.2.1-6) (GCC).
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97817
Bug ID: 97817
Summary: -Wformat-truncation=2 elicits invalid warning
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c