[LLVMbugs] [Bug 12045] New: Problem including "boost/type_traits/is_complex.hpp" with -std=c++0x

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Feb 20 20:24:32 PST 2012


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

             Bug #: 12045
           Summary: Problem including "boost/type_traits/is_complex.hpp"
                    with -std=c++0x
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++0x
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: Dave at Yost.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified


Created attachment 8081
  --> http://llvm.org/bugs/attachment.cgi?id=8081
transcript of trying to build a test file

Trunk version is 150806 (which seems to be a.k.a. 3.1 but isn't in the
Component list above).

For some reason clang relies on a gnu include file, which it fails to parse.

In file included from /usr/local/include/boost/type_traits/is_complex.hpp:12:
/usr/lib/gcc/x86_64-redhat-linux/4.6.1/../../../../include/c++/4.6.1/complex:1067:7:
error: constexpr function never
      produces a constant expression
      real() const { return __real__ _M_value; }
      ^

Problem occurs only if I use -std=c++0x or -std=c++11
I don't have this problem on Mac.
Occurs with boost 1.48 and 1.49_beta1

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list