[LLVMbugs] [Bug 18327] New: Compile errors when activating -Wsystem-headers

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Dec 26 10:37:29 PST 2013


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

            Bug ID: 18327
           Summary: Compile errors when activating -Wsystem-headers
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: dwiberg at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

I get errors instead of warnings when -Wsystem-headers are enabled.

Testcase:
#include <cmath>

int main(int argc, char *argv[])
{
  return 0;
}

Compile command:
clang++ -std=c++11 -Wall -Wsystem-headers test.cpp

Output (I get a bunch of the same kind):
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/cmath:245:3:
error: constexpr function never produces a constant expression
      [-Winvalid-constexpr]
  exp(long double __x)

-- 
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/20131226/9b37cea4/attachment.html>


More information about the llvm-bugs mailing list