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

             Bug #: 12707
           Summary: GCC 4.6.3's libstdc++ compile error
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++11
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected]
    Classification: Unclassified


With this up to date build of Windows Clang:
http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win32/Personal%20Builds/rubenvb/experimental/i686-w64-mingw32-clang-3.1_rubenvb.7z/download

Which is GCC 4.6.3 with Clang r155821. Test code:
#include <memory>

int main(){}

Compiling with -std=c++0x gives this error:
In file included from bug.cpp:1:
In file included from
M:/Development/mingw32/bin\..\lib\clang\3.1/../../../include/c++/4.6.3\memory:75:
M:/Development/mingw32/bin\..\lib\clang\3.1/../../../include/c++/4.6.3\ext/concurrence.h:228:2:
error: no matching function for call to '_S_destroy'
        _S_destroy(&_M_mutex);
        ^~~~~~~~~~
M:/Development/mingw32/bin\..\lib\clang\3.1/../../../include/c++/4.6.3\ext/concurrence.h:273:7:
note: candidate template ignored: substitution failure [with _Rm =
__gthread_recursive_mutex_t]
      _S_destroy(_Rm* __mx)
      ^
M:/Development/mingw32/bin\..\lib\clang\3.1/../../../include/c++/4.6.3\ext/concurrence.h:282:7:
note: candidate template ignored: substitution failure [with _Rm =
__gthread_recursive_mutex_t]
      _S_destroy(_Rm* __mx)
      ^
M:/Development/mingw32/bin\..\lib\clang\3.1/../../../include/c++/4.6.3\ext/concurrence.h:290:7:
note: candidate template ignored: substitution failure [with _Rm =
__gthread_recursive_mutex_t]
      _S_destroy(_Rm* __mx)
      ^
1 error generated.

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