This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug ipa/60965] [4.10 Regression] IPA: Devirtualization versus placement new
- From: "jason at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 05 May 2014 15:41:16 +0000
- Subject: [Bug ipa/60965] [4.10 Regression] IPA: Devirtualization versus placement new
- Auto-submitted: auto-generated
- References: <bug-60965-4 at http dot gcc dot gnu dot org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60965
--- Comment #14 from Jason Merrill <jason at gcc dot gnu.org> ---
(In reply to Andrew Haley from comment #11)
> (In reply to Jason Merrill from comment #9)
> > As far as I know people always use char arrays for placement new anyway; at
> > least all the examples I've ever seen do.
>
> I'm not really sure how, given that objects must be aligned.
Either with an alignment attribute or by wrapping the array in a class like
std::aligned_storage.