[llvm-bugs] [Bug 26117] msvc-cl and clang-cl disagree on what can be static_asserted
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Jan 11 13:25:20 PST 2016
https://llvm.org/bugs/show_bug.cgi?id=26117
Richard Smith <richard-llvm at metafoo.co.uk> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |INVALID
--- Comment #3 from Richard Smith <richard-llvm at metafoo.co.uk> ---
Neither GCC nor MSVC properly implement the C++11 constant expression rules in
this area. Casting between pointers and integers is not permitted in a constant
expression (and nor is the reinterpret_cast to cv char&).
Reid, it sounds like you don't think this is worth supporting as an MSVC
compatibility hack, so I'm going to close this. Please reopen if this is
important for MSVC compatibility on some important headers.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20160111/26295edb/attachment.html>
More information about the llvm-bugs
mailing list