[Bug c++/67703] assert after placement new

2015-09-24 Thread piotrekpad at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67703 Piotr Padlewski changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug c++/67703] New: assert after placement new

2015-09-23 Thread piotrekpad at gmail dot com
++ Assignee: unassigned at gcc dot gnu.org Reporter: piotrekpad at gmail dot com Target Milestone: --- Hi, This code is is c++11 valid: #include #include struct A { virtual void foo(); }; struct B : A{ void foo(); }; void f() { A *a = new A; a->foo(); A* b = new() B; ass