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

2015-09-23 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] assert after placement new

2015-09-23 Thread pinskia at gcc dot gnu.org
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.