[LLVMbugs] [Bug 8470] New: Error including GCC's 4.4 tr1/type_traits

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Oct 26 12:09:56 PDT 2010


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

           Summary: Error including GCC's 4.4 tr1/type_traits
           Product: clang
           Version: 2.8
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: dontbugme at mailinator.com
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com


Created an attachment (id=5670)
 --> (http://llvm.org/bugs/attachment.cgi?id=5670)
Complete error output for clang++

A simple test case including tr1/type_traits fail to compile in clang++ while
compiles fine with g++ 4.4 using the same compile options:

-----------
/tmp$ cat test.cpp

#include <tr1/type_traits>

/tmp$ g++ -Wall -std=c++98 -c test.cpp
/tmp$ clang++ -ferror-limit=2 -Wall -std=c++98 -c test.cpp
In file included from test.cpp:2:
In file included from /usr/include/c++/4.4/tr1/type_traits:46:
/usr/include/c++/4.4/tr1_impl/type_traits:226:35: error: variadic templates are
only allowed in C++0x
  template<typename _Res, typename... _ArgTypes>
                                  ^
/usr/include/c++/4.4/tr1_impl/type_traits:229:35: error: variadic templates are
only allowed in C++0x
  template<typename _Res, typename... _ArgTypes>
                                  ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
3 errors generated.
---------

I'm using Ubuntu 10.10. Complete error output (-ferror-limit=0) is attached.

-- 
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