r268355 - in /trunk/libstdc++-v3: ChangeLog tes...

redi@gcc.gnu.org redi@gcc.gnu.org
Tue Jan 29 00:47:00 GMT 2019


Author: redi
Date: Tue Jan 29 00:47:32 2019
New Revision: 268355

URL: https://gcc.gnu.org/viewcvs?rev=268355&root=gcc&view=rev
Log:
Fix tests that fail in C++2a mode

The nested typedefs in std::reference_wrapper are no longer present in
C++2a mode, so skip the tests that check for them.

The addition of the [[nodiscard]] attribute to a few functions causes
some failures in tests that intentionally ignore the return value.
Casting the result to void suppresses the new warnings.

	* testsuite/20_util/reference_wrapper/result_type.cc: Disable for
	C++2a.
	* testsuite/20_util/reference_wrapper/typedefs-2.cc: Likewise.
	* testsuite/20_util/reference_wrapper/typedefs-3.cc: Likewise.
	* testsuite/20_util/reference_wrapper/typedefs.cc: Likewise.
	* testsuite/30_threads/async/54297.cc: Suppress nodiscard warning.
	* testsuite/ext/array_allocator/26875.cc: Likewise.
	* testsuite/ext/pool_allocator/allocate_chunk.cc: Likewise.
	* testsuite/util/replacement_memory_operators.h: Likewise.
	* testsuite/util/testsuite_allocator.h: Likewise.

Modified:
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/testsuite/20_util/reference_wrapper/result_type.cc
    trunk/libstdc++-v3/testsuite/20_util/reference_wrapper/typedefs-2.cc
    trunk/libstdc++-v3/testsuite/20_util/reference_wrapper/typedefs-3.cc
    trunk/libstdc++-v3/testsuite/20_util/reference_wrapper/typedefs.cc
    trunk/libstdc++-v3/testsuite/30_threads/async/54297.cc
    trunk/libstdc++-v3/testsuite/ext/array_allocator/26875.cc
    trunk/libstdc++-v3/testsuite/ext/pool_allocator/allocate_chunk.cc
    trunk/libstdc++-v3/testsuite/util/replacement_memory_operators.h
    trunk/libstdc++-v3/testsuite/util/testsuite_allocator.h



More information about the Libstdc++-cvs mailing list