r245457 - in /branches/gcc-5-branch/libstdc++-v...

redi@gcc.gnu.org redi@gcc.gnu.org
Tue Feb 14 21:17:00 GMT 2017


Author: redi
Date: Tue Feb 14 21:17:29 2017
New Revision: 245457

URL: https://gcc.gnu.org/viewcvs?rev=245457&root=gcc&view=rev
Log:
PR69301 don't assume atomic<T> can default construct T

Backport from mainline
2017-01-18  Jonathan Wakely  <jwakely@redhat.com>

	PR libstdc++/69301
	* include/std/atomic (atomic<T>::load, atomic<T>::exchange): Use
	aligned buffer instead of default-initialized variable.
	* testsuite/29_atomics/atomic/69301.cc: New test.
	* include/ext/pointer.h (_Pointer_adapter::operator++(int))
	(_Pointer_adapter::operator--(int)): Likewise.

Added:
    branches/gcc-5-branch/libstdc++-v3/testsuite/29_atomics/atomic/69301.cc
Modified:
    branches/gcc-5-branch/libstdc++-v3/ChangeLog
    branches/gcc-5-branch/libstdc++-v3/include/ext/pointer.h
    branches/gcc-5-branch/libstdc++-v3/include/std/atomic



More information about the Libstdc++-cvs mailing list