https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120029
--- Comment #4 from Haoxiang Yu ---
(In reply to Jonathan Wakely from comment #3)
> The simplest fix is just:
>
> --- a/libstdc++-v3/src/c++17/fs_path.cc
> +++ b/libstdc++-v3/src/c++17/fs_path.cc
> @@ -880,6 +880,9 @@ path::operator+=(const pat
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120029
--- Comment #2 from Haoxiang Yu ---
Created attachment 61255
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=61255&action=edit
The source code that causes the crash
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120029
Haoxiang Yu changed:
What|Removed |Added
Attachment #61253|0 |1
is obsolete|
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120029
Bug ID: 120029
Summary: Dangling iterator usage in
std::filesystem::path::operator+=(const
std::filesystem::path &p) when this == p
Product: gcc
Version: 16.0