[Bug libstdc++/80553] std::vector allows instantiation with type having a deleted destructor

glisse at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Apr 28 10:39:00 GMT 2017


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

--- Comment #3 from Marc Glisse <glisse at gcc dot gnu.org> ---
__has_trivial_destructor(Foo) returns true for Foo which has a deleted
destructor (clang, gcc and the standard agree on this). That's bound to confuse
people forever, but I guess there's nothing we can do about it :-(


More information about the Gcc-bugs mailing list