| Issue |
161946
|
| Summary |
Undefined symbol std::__1::__hash_memory(void const*, unsigned long)
|
| Labels |
new issue
|
| Assignees |
|
| Reporter |
ncihnegn
|
hash_memory.cc:
```
#include <unordered_map>
#include <vector>
using namespace std;
int main() {
unordered_map<string, int> m;
m["test"]=0;
return 0;
}
```
```
$ /usr/local/opt/llvm/bin/clang++ -std=c++26 hash_memory.cc
Undefined symbols for architecture arm64:
"std::__1::__hash_memory(void const*, unsigned long)", referenced from:
unsigned long std::__1::__do_string_hash[abi:ne210101]<char const*>(char const*, char const*) in hash_memory-8f4180.o
ld: symbol(s) not found for architecture arm64
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
```
macOS 26.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs