This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/81977] Possible issue with inline memcpy with packed structures
- From: "vvarada at codeaurora dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 25 Aug 2017 01:40:13 +0000
- Subject: [Bug c++/81977] Possible issue with inline memcpy with packed structures
- Auto-submitted: auto-generated
- References: <bug-81977-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81977
--- Comment #1 from vvarada at codeaurora dot org ---
FYI: The issue shows up on previous versions of GCC compiler as well, as early
as 4.9.2 (have not tried earlier versions).
Also if the "buffer" in main is declared as a static uint8_t array, the issue
does not show up. For some reason it shows up only when buffer is a pointer as
shown in the source snippet.