[LLVMdev] hash extras

Ryan M. Lefever lefever at crhc.illinois.edu
Mon Oct 12 18:17:18 PDT 2009


I am trying to upgrade my code to use the latest version of llvm from 
svn.  Whenever I include "llvm/ADT/HashExtras.h", I get error messages 
like the following.  Does anyone know what is going on?  Thanks for any 
help.

llvm[1]: Compiling Aux.cpp for Debug build (PIC)
In file included from 
/home/lefever/work/memrep/src/compiler/include/Aux.h:4,
                  from Aux.cpp:1:
/home/lefever/llvm/svn091010/llvm/include/llvm/ADT/HashExtras.h:26: 
error: ‘hash’ is not a template
/home/lefever/llvm/svn091010/llvm/include/llvm/ADT/HashExtras.h: In 
member function ‘size_t HASH_NAMESPACE::hash<std::basic_string<char, 
std::char_traits<char>, std::allocator<char> > >::operator()(const 
std::string&) const’:
/home/lefever/llvm/svn091010/llvm/include/llvm/ADT/HashExtras.h:34: 
error: no match for call to ‘(HASH_NAMESPACE::hash<const char*>) (const 
char*)’
/home/lefever/llvm/svn091010/llvm/include/llvm/ADT/HashExtras.h:27: 
note: candidates are: size_t HASH_NAMESPACE::hash<T>::operator()(const 
T*) const [with T = const char*]
make[1]: *** 
[/home/lefever/work/memrep/src/compiler/lib/memrep/Debug/Aux.o] Error 1
make[1]: Leaving directory 
`/home/lefever/work/memrep/src/compiler/lib/memrep'
make: *** [compiler/Debug/lib/libmemrep.so] Error 2




More information about the llvm-dev mailing list