[LLVMbugs] [Bug 18798] clang raise error when compiling boost constant in constexpr

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Feb 10 20:33:09 PST 2014


Richard Smith <richard-llvm at metafoo.co.uk> changed:

           What    |Removed                     |Added
             Status|NEW                         |RESOLVED
         Resolution|---                         |INVALID

--- Comment #2 from Richard Smith <richard-llvm at metafoo.co.uk> ---
Aha, found a more complete testcase here:


This is not a Clang bug: const doubles like 'boost::math::double_constants::pi'
can't be used in constant expressions.

The fact that GCC accepts is a bug in GCC: http://gcc.gnu.org/PR57979

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/20140211/6bef6de8/attachment.html>

More information about the llvm-bugs mailing list