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 c++/52924] [4.7 Regression] Using an std::function object as deleter of shared_ptr in C++0x mode does not compile


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

--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-04-10 12:55:40 UTC ---
another testcase showing a similar bug:

#include <memory>

template<typename T>
struct Alloc : std::allocator<T>
{
    template<typename U> struct rebind { typedef Alloc<U> other; };

    template<typename U> Alloc(const Alloc<U>&) { }

    Alloc() = default;
    ~Alloc() noexcept(false) { }
};

Alloc<A> alloc;

auto x = std::allocate_shared<A>(alloc);


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