[LLVMbugs] [Bug 9963] New: hash in memory and functional collides

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri May 20 00:08:35 PDT 2011


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: hhinnant at apple.com
        ReportedBy: oroppas at gmail.com
                CC: llvmbugs at cs.uiuc.edu


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.



More information about the llvm-bugs mailing list