[LLVMbugs] [Bug 10528] New: Windows MSVC2010: #include <string> fails with unknown type std::collate

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Jul 28 10:01:09 PDT 2011


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

           Summary: Windows MSVC2010: #include <string> fails with unknown
                    type std::collate
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: release blocker
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: Axel.Naumann at cern.ch
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com


The trunk of clang (compiled from scratch) fails to compile anything that
#includes <string> from Visual Studio 2010. You give the option "release
blocker", and I would not release like that ;-) so I picked it.

E:\build\cling\obj>type test.cxx
#include <string>

E:\build\cling\obj>clang++ -c test.cxx
In file included from test.cxx:1:
In file included from c:\Program Files (x86)\Microsoft Visual Studio
10.0\VC\inc
lude\string:6:
In file included from c:\Program Files (x86)\Microsoft Visual Studio
10.0\VC\inc
lude\istream:6:
In file included from c:\Program Files (x86)\Microsoft Visual Studio
10.0\VC\inc
lude\ostream:6:
In file included from c:\Program Files (x86)\Microsoft Visual Studio
10.0\VC\inc
lude\ios:6:
In file included from c:\Program Files (x86)\Microsoft Visual Studio
10.0\VC\inc
lude\xlocnum:10:
In file included from c:\Program Files (x86)\Microsoft Visual Studio
10.0\VC\inc
lude\streambuf:6:
In file included from c:\Program Files (x86)\Microsoft Visual Studio
10.0\VC\inc
lude\xiosbase:6:
c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\xlocale:263:14:
e
rror:
      no type named 'collate' in namespace 'std'
                const _STD collate<_Elem>& _Coll_fac =
                      ~~~~ ^
c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\xlocale:263:21:
e
rror:
      expected unqualified-id
                const _STD collate<_Elem>& _Coll_fac =
                                  ^
c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\xlocale:266:11:
e
rror:
      use of undeclared identifier '_Coll_fac'; did you mean '_Collvec'?
                return (_Coll_fac.compare(_Left.c_str(), _Left.c_str() ...
                        ^
3 errors generated.

E:\build\cling\obj>clang --version
clang version 3.0 (trunk)
Target: i686-pc-win32
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