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++/58594] [4.9 Regression] std::make_shared does not accept const types as parameters


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58594

--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Author: redi
Date: Fri Dec 12 21:05:35 2014
New Revision: 218691

URL: https://gcc.gnu.org/viewcvs?rev=218691&root=gcc&view=rev
Log:
    PR libstdc++/58594
    * include/bits/shared_ptr_base.h: Cast away cv-quals.
    * testsuite/20_util/shared_ptr/creation/58594-no-rtti.cc: New.
    * testsuite/20_util/shared_ptr/creation/private.cc: Make allocator
    rebindable so test passes with -fno-rtti.

Added:
    trunk/libstdc++-v3/testsuite/20_util/shared_ptr/creation/58594-no-rtti.cc
      - copied, changed from r218690,
trunk/libstdc++-v3/testsuite/20_util/shared_ptr/creation/private.cc
Modified:
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/include/bits/shared_ptr_base.h
    trunk/libstdc++-v3/testsuite/20_util/shared_ptr/creation/private.cc


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