This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/85651] Invalid -Warray-bounds warning with -O3
- From: "gburca-gnu at ebixio dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 04 May 2018 13:38:09 +0000
- Subject: [Bug c++/85651] Invalid -Warray-bounds warning with -O3
- Auto-submitted: auto-generated
- References: <bug-85651-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85651
--- Comment #1 from Gabriel Burca <gburca-gnu at ebixio dot com> ---
I suspect the "for" loop in appendAux() is being optimized and replaced with a
memcpy(), which then leads to the warning.