https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61988
Bug ID: 61988
Summary: compiler error when misplascing "memcpy(" instead of
"memset("
Product: gcc
Version: 4.8.2
Status: UNCONFIRMED
Severity: minor
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: filip.svoboda at netajo dot cz
Please see attached source.
When i wrongly called memcpy() function instead of memset() with argument for
memset(), the following error was generated:
filip@toshiba:~$ g++ err.cc
err.cc: In function ‘int main(int, char**)’:
err.cc:10:28: internal compiler error: in ix86_copy_addr_to_reg, at
config/i386/i386.c:21722
memcpy(foo, 0x00, MAX_LEN);
^