https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87071
Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |WAITING Last reconfirmed| |2018-08-23 Ever confirmed|0 |1 --- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> --- (In reply to Uroš Bizjak from comment #4) > (In reply to Sergey Kondakov from comment #3) > > > If your code is correct then whose isn't ? > Instructions are generated by the compiler. So, it is the compiler's fault, > it probably emits a SSE instruction that your processor doesn't understand. Right. As you can see in GDB, the libstdc++ code says: 350 return static_cast<char_type*>(__builtin_memcpy(__s1, __s2, __n)); Do you see any processor instructions there? Anything that isn't valid on your CPU? No, because it's just C++ code. > Also, please read https://gcc.gnu.org/bugs/ I already said that before the bug was even filed.