Bug 61988 - compiler error when misplascing "memcpy(" instead of "memset("
Summary: compiler error when misplascing "memcpy(" instead of "memset("
Status: RESOLVED DUPLICATE of bug 60693
Alias: None
Product: gcc
Classification: Unclassified
Component: target (show other bugs)
Version: 4.8.2
: P3 minor
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-08-01 10:21 UTC by Filip Svoboda
Modified: 2014-08-01 18:04 UTC (History)
1 user (show)

See Also:
Host:
Target: x86_64-*-*, i?86-*-*
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments
failing source code (117 bytes, text/x-c++src)
2014-08-01 10:22 UTC, Filip Svoboda
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Filip Svoboda 2014-08-01 10:21:41 UTC
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);
                            ^
Comment 1 Filip Svoboda 2014-08-01 10:22:24 UTC
Created attachment 33224 [details]
failing source code
Comment 2 Jakub Jelinek 2014-08-01 18:04:14 UTC
Dup.

*** This bug has been marked as a duplicate of bug 60693 ***