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: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to