[LLVMbugs] [Bug 7220] New: Centos 5.5 <string> causes syntax errors

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon May 24 22:37:44 PDT 2010


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: unassignedclangbugs at nondot.org
        ReportedBy: mika.heiskanen at fmi.fi
                CC: llvmbugs at cs.uiuc.edu


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.



More information about the llvm-bugs mailing list