[LLVMbugs] [Bug 20484] New: type_traits cannot be used with gcc for -std=c++ < 11

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Jul 29 10:34:44 PDT 2014


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

            Bug ID: 20484
           Summary: type_traits cannot be used with gcc for -std=c++ < 11
           Product: libc++
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: danalbert at google.com
                CC: llvmbugs at cs.uiuc.edu, mclow.lists at gmail.com
    Classification: Unclassified

Including the type_traits header from g++ currently fails if not using c++11:

    error: default template arguments may not be used in function templates
without -std=c++11 or -std=gnu++11

This is a C++11 header, so it should be a non-issue, but type_traits gets
included in many other headers, including things as simple as cmath.

The patch that introduced the default template argument in question was r123163
(https://github.com/llvm-mirror/libcxx/commit/2b44e3dd49136179c49a81f34f14ce31005c6792).

-- 
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/20140729/aad1a957/attachment.html>


More information about the llvm-bugs mailing list