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

           Summary: Centos 5.5 <string> causes syntax errors
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


Using #include <string> on Centos 5.5 (and hence most likely also on RedHat
5.5) generates the following errors:

In file included from /usr/include/c++/4.1.2/string:45:
In file included from /usr/include/c++/4.1.2/bits/char_traits.h:45:
In file included from /usr/include/c++/4.1.2/bits/stl_algobase.h:69:
In file included from /usr/include/c++/4.1.2/iosfwd:45:
In file included from /usr/include/c++/4.1.2/i386-redhat-linux/bits/c++io.h:38:
In file included from /usr/include/c++/4.1.2/i386-redhat-linux/bits/gthr.h:132:
/usr/include/c++/4.1.2/i386-redhat-linux/bits/gthr-default.h:100:1: error:
weakref declaration of '__gthrw_pthread_once' must be static
__gthrw(pthread_once)
^
/usr/include/c++/4.1.2/i386-redhat-linux/bits/gthr-default.h:81:23: note:
instantiated from:
#define __gthrw(name) __gthrw2(__gthrw_ ## name,name,name)
                      ^
/usr/include/c++/4.1.2/i386-redhat-linux/bits/gthr-default.h:72:46: note:
instantiated from:
  extern __typeof(type) name __attribute__ ((__weakref__(#name2))); \
                                             ^
Used options:

-fsyntax-only

Version:

> clang++ --version
clang version 2.0 (trunk 104313)
Target: i386-pc-linux-gnu
Thread model: posix

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

Reply via email to