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

2017-04-28 Thread marco at italiancpp dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80553 --- Comment #6 from Marco Arena --- Hi guys, thanks for the clarification, I didn't know it's UB, rather I thought this was a requirement as stated here: http://en.cppreference.com/w/cpp/concept/Erasable (see "Notes"). I had to read the standard,

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

2017-04-28 Thread marco at italiancpp dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80553 --- Comment #1 from Marco Arena --- My apologies, here is the repro link: https://wandbox.org/permlink/SOzsFGQ1vGVjwy1O

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

2017-04-28 Thread marco at italiancpp dot org
Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: marco at italiancpp dot org Target Milestone: --- struct Foo { ~Foo() = delete; }; int main() { vector v; } This compiles just fine, although it shouldn't be