https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58038
--- Comment #14 from Jonathan Wakely <redi at gcc dot gnu.org> --- Author: redi Date: Sat Apr 11 11:47:09 2015 New Revision: 222003 URL: https://gcc.gnu.org/viewcvs?rev=222003&root=gcc&view=rev Log: PR libstdc++/58038 * include/std/thread (this_thread::sleep_for): Check for negative durations. (this_thread::sleep_until): Check for times in the past. * testsuite/30_threads/this_thread/58038.cc: New. * testsuite/30_threads/this_thread/60421.cc: New. Added: branches/gcc-4_9-branch/libstdc++-v3/testsuite/30_threads/this_thread/58038.cc branches/gcc-4_9-branch/libstdc++-v3/testsuite/30_threads/this_thread/60421.cc Modified: branches/gcc-4_9-branch/libstdc++-v3/ChangeLog branches/gcc-4_9-branch/libstdc++-v3/include/std/thread