[Bug middle-end/85643] attribute nonstring fails to squash -Wstringop-truncation warning
msebor at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue May 8 02:31:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85643
Martin Sebor <msebor at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2018-05-08
CC| |msebor at gcc dot gnu.org
Ever confirmed|0 |1
--- Comment #1 from Martin Sebor <msebor at gcc dot gnu.org> ---
Confirmed. In both f3() and f4() the destination at a non-zero offset is
represented as a MEM_REF(ADDR_EXPR(VAR_DECL(data)), offset) that the warning
isn't prepared to deal with the same way as when the offset is zero.
More information about the Gcc-bugs
mailing list