This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC 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]

[Bug libstdc++/51626] [4.6 Regression] [C++0x] can't use C++98 allocators with -std=c++0x


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

--- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-12-21 18:35:48 UTC ---
Author: redi
Date: Wed Dec 21 18:35:40 2011
New Revision: 182600

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=182600
Log:
    PR libstdc++/51626
    * include/bits/stl_uninitialized.h (_Construct_default_a_impl): Define
    overloaded functions to conditionally use allocator::construct.
    (_Construct_default_a): Define to dispatch to appropriate
    _Construct_default_a_impl overload.
    (__uninitialized_default_a, __uninitialized_default_n_a): Use
    _Construct_default_a.
    * testsuite/20_util/allocator/51626.cc: New.

Added:
    branches/gcc-4_6-branch/libstdc++-v3/testsuite/20_util/allocator/51626.cc
Modified:
    branches/gcc-4_6-branch/libstdc++-v3/ChangeLog
    branches/gcc-4_6-branch/libstdc++-v3/include/bits/stl_uninitialized.h


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