[Bug libstdc++/116494] std::string::replace uses memcpy incorrectly and warns about it

2024-08-27 Thread grisumbras at yandex dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116494 --- Comment #2 from Архипов Дмитрий --- Ah, so it warns that if that branch would have been taken, it would cause a problem, but it doesn't actually take the branch. So it's just a false positive warning?

[Bug libstdc++/116494] New: std::string::replace uses memcpy incorrectly and warns about it

2024-08-26 Thread grisumbras at yandex dot ru via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116494 Bug ID: 116494 Summary: std::string::replace uses memcpy incorrectly and warns about it Product: gcc Version: 13.2.0 Status: UNCONFIRMED Severity: normal