[Bug c++/67703] assert after placement new
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67703 Piotr Padlewski changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---
[Bug c++/67703] assert after placement new
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67703 --- Comment #1 from Andrew Pinski --- > A* b = new(&a) B; I think that is wrong. it should have been "new(a) B;" Otherwise you are allocating the new object with the space for the variable a instead of what a points to.