gcc/libstdc++-v3/testsuite/27_io
Jonathan Wakely e11c487111 PR libstdc++/91012 fixfilesystem_error::what() string
When I refactored the filesystem_error code I changed it to only use the
constructor parameter in the what() string, instead of the string
returned by system_error::what(). That meant it no longer included the
description of the error_code that system_error adds. This restores the
previous behaivour, as encouraged by the standard ("Implementations
should include the system_error::what() string and the pathnames of
path1 and path2 in the native format in the returned string").

	PR libstdc++/91012
	* src/c++17/fs_path.cc (filesystem_error::_Impl): Use a string_view
	for the what_arg parameters.
	(filesystem_error::filesystem_error): Pass system_error::what() to
	the _Impl constructor.
	* testsuite/27_io/filesystem/filesystem_error/cons.cc: Ensure that
	filesystem_error::what() contains system_error::what().

From-SVN: r272739
2019-06-27 10:42:39 +01:00
..
basic_filebuf Update copyright years. 2019-01-01 13:31:55 +01:00
basic_fstream Update copyright years. 2019-01-01 13:31:55 +01:00
basic_ifstream Update copyright years. 2019-01-01 13:31:55 +01:00
basic_ios Update copyright years. 2019-01-01 13:31:55 +01:00
basic_iostream Update copyright years. 2019-01-01 13:31:55 +01:00
basic_istream Update copyright years. 2019-01-01 13:31:55 +01:00
basic_istringstream Update copyright years. 2019-01-01 13:31:55 +01:00
basic_ofstream Update copyright years. 2019-01-01 13:31:55 +01:00
basic_ostream Implement LWG 2221: formatted output operator for nullptr 2019-01-10 13:14:57 +00:00
basic_ostringstream Update copyright years. 2019-01-01 13:31:55 +01:00
basic_streambuf Update copyright years. 2019-01-01 13:31:55 +01:00
basic_stringbuf Update copyright years. 2019-01-01 13:31:55 +01:00
basic_stringstream Update copyright years. 2019-01-01 13:31:55 +01:00
filesystem PR libstdc++/91012 fixfilesystem_error::what() string 2019-06-27 10:42:39 +01:00
fpos Update copyright years. 2019-01-01 13:31:55 +01:00
headers Update copyright years. 2019-01-01 13:31:55 +01:00
ios_base Update copyright years. 2019-01-01 13:31:55 +01:00
manipulators Update copyright years. 2019-01-01 13:31:55 +01:00
objects Update copyright years. 2019-01-01 13:31:55 +01:00
types Update copyright years. 2019-01-01 13:31:55 +01:00
rvalue_streams-2.cc Update copyright years. 2019-01-01 13:31:55 +01:00
rvalue_streams.cc Update copyright years. 2019-01-01 13:31:55 +01:00