This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Adjust effective target selector to fix C++17 FAIL


This test using std::set_unexpected fails when run with -std=gnu++17
because throw() is no longer a dynamic exception specification and so
the unexpected handler no longer gets called. This tweaks the target
selector so it's only run for C++11 and C++14, where unexpected
handlers are usable (it can't be run for C++98 because it uses
std::rethrow_exception).

	* testsuite/18_support/exception_ptr/60612-unexpected.cc: Adjust
	effective target selector to prevent running in C++17 mode.

Tested x86_64-linux with various -std options, committed to trunk.

Attachment: patch.txt
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]