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

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Feb 10 13:59:23 PST 2014


http://llvm.org/bugs/show_bug.cgi?id=18798

            Bug ID: 18798
           Summary: clang raise error when compiling boost constant in
                    constexpr
           Product: clang
           Version: 3.4
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++11
          Assignee: unassignedclangbugs at nondot.org
          Reporter: mousekrup at gmail.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified

For example, the following line:
"static constexpr double SEC3 =
static_cast<double>(45)/180*boost::math::double_constants::pi;"
gives me error
"Error - constexpr variable 'SEC3' must be initialized by a constant
expression"

But gcc compile this line just fine.

-- 
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/20140210/6bae1956/attachment.html>


More information about the llvm-bugs mailing list