r267574 - in /trunk/libstdc++-v3: ChangeLog src...

redi@gcc.gnu.org redi@gcc.gnu.org
Fri Jan 4 11:43:00 GMT 2019


Author: redi
Date: Fri Jan  4 11:43:09 2019
New Revision: 267574

URL: https://gcc.gnu.org/viewcvs?rev=267574&root=gcc&view=rev
Log:
Fix concatenation bug in filesystem::path

When erasing a trailing empty filename component, the output iterator
was not decremented, causing the next component to be created at the
wrong position.

	* src/filesystem/std-path.cc (path::operator+=(const path&)): Fix
	incorrect treatment of empty filename after trailing slash.
	* testsuite/27_io/filesystem/path/concat/path.cc: Test problem case.

Modified:
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/src/filesystem/std-path.cc
    trunk/libstdc++-v3/testsuite/27_io/filesystem/path/concat/path.cc



More information about the Gcc-cvs mailing list