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

           Summary: hash in memory and functional collides
           Product: libc++
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


The attached file can be compiled by g++, as g++ -std=c++0x ./hash.cpp
whereas clang++ with libc++ fails to compile it:

$ clang++ -std=c++0x -stdlib=libc++ ./hash.cpp 
./hash.cpp:22:17: error: implicit instantiation of undefined template
      'std::__1::hash<operand::datatype>'
  inline size_t hash<operand::datatype>::operator()(operand::datatype t) const
                ^
/usr/include/c++/v1/memory:2396:25: note: template is declared here
template <class> struct hash;
                        ^
1 error generated.


Cheers,

Ryuta

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