llvm / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
http://llvm.org
Other
29.11k stars 12.01k forks source link

ADT/hash_map raises warning on g++ 4.3 #4048

Closed nlewycky closed 14 years ago

nlewycky commented 15 years ago
Bugzilla Link 3676
Resolution FIXED
Resolved on Mar 06, 2010 14:00
Version trunk
OS Linux

Extended Description

ADT/hash_map.h maps to #include <ext/hash_map> on gcc 3.1+. However, by gcc 4.3, that's obsolete and GCC generates a warning.

The replacement is #include <tr1/unordered_map>. We may need to typedef the name or somesuch, but otherwise I expect it to work out of the box.

nlewycky commented 15 years ago

Fixed by commits: 66398 66400 66406 66407

lattner commented 15 years ago

I agree with duncan, down with hash_map!

llvmbot commented 15 years ago

How about converting the users of hash_map over to DenseMap or one of the other newer containers instead? Then hash_map can be dumped (probably a good thing).