[Bug middle-end/70526] [5/6 Regression] GCC 6 miscompiles Firefox JIT compiler

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue May 3 09:57:00 GMT 2016


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70526

--- Comment #27 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to rguenther@suse.de from comment #26)
> std::aligned_storage<T> has the requirement of a POD type T.  So I
> wondered about whether the intent was to make copying it by plain
> assignment possible.  Using std::memcpy() on the object would always
> work at least as that is documented for POD types.

It means that the aligned_storage<N>::type must be a POD type, not that you can
only store POD types in such buffers.


More information about the Gcc-bugs mailing list