[PATCH] D28429: Remove the restriction of ten types on AligedCharArrayUnion

David Blaikie via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 9 11:31:04 PST 2017


On Mon, Jan 9, 2017 at 11:22 AM Sean Callanan via Phabricator <
reviews at reviews.llvm.org> wrote:

> spyffe added a comment.
>
> According to the GCC 5 changelist <https://gcc.gnu.org/gcc-5/changes.html>,
> support for `std::aligned_union` was introduced with GCC 5.
> I was able to verify with Compiler Explorer <http://gcc.godbolt.org> that
> `std::aligned_union` is **unsupported** (as in, not found) by 4.9.5. It is
> supported by 5.1.
>

Ah, pity - thanks for checking!

I was going off https://gcc.gnu.org/projects/cxx-status.html#cxx11 which
mentions 4.8 for library alignment features, evidently not all of them.


>
> According to Microsoft <
> https://msdn.microsoft.com/en-us/library/dn986846.aspx>, Visual Studio
> 2015 supports `std::aligned_union`.
> I was able to verify with "Compile Visual Studio C++ Online" <
> http://rextester.com/l/cpp_online_compiler_visual> that Visual C++ 2015
> supports it.
>
>
> https://reviews.llvm.org/D28429
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170109/e358a940/attachment.html>


More information about the llvm-commits mailing list