This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/81629] New: redefined memcpy leads to segmentation fault
- From: "frederic.besson at inria dot fr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 31 Jul 2017 09:32:46 +0000
- Subject: [Bug c/81629] New: redefined memcpy leads to segmentation fault
- Auto-submitted: auto-generated
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81629
Bug ID: 81629
Summary: redefined memcpy leads to segmentation fault
Product: gcc
Version: 7.1.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: frederic.besson at inria dot fr
Target Milestone: ---
Hi,
The simple code below crashes with internal compiler error: Segmentation
fault.
It seems gcc does not like the redefinition of memcpy.
extern unsigned long long memcpy(unsigned long long, unsigned long long,
unsigned long long);
void foo(unsigned long long ctx, unsigned long long output)
{
memcpy(ctx + 2LLU, ctx, 1U);
return;
}
Best regards,