[Bug libstdc++/56012] [4.7/4.8 Regression] [C++11] Narrowing conversion in atomic_flag

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Feb 27 00:58:00 GMT 2013


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56012

--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> 2013-02-27 00:57:43 UTC ---
Author: redi
Date: Wed Feb 27 00:57:36 2013
New Revision: 196301

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=196301
Log:
    PR libstdc++/56012
    * include/bits/atomic_base.h (atomic_flag): Fix narrowing conversion.
    * testsuite/29_atomics/atomic/operators/56012.cc: New.

    PR libstdc++/56011
    * include/std/atomic (atomic<bool>::operator=(bool) volatile): Add
    missing overload.
    * testsuite/29_atomics/atomic/operators/56011.cc: New.

Added:
   
branches/gcc-4_7-branch/libstdc++-v3/testsuite/29_atomics/atomic/operators/56011.cc
   
branches/gcc-4_7-branch/libstdc++-v3/testsuite/29_atomics/atomic_flag/cons/56012.cc
Modified:
    branches/gcc-4_7-branch/libstdc++-v3/ChangeLog
    branches/gcc-4_7-branch/libstdc++-v3/include/bits/atomic_base.h
    branches/gcc-4_7-branch/libstdc++-v3/include/std/atomic



More information about the Gcc-bugs mailing list