This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/12338] New: long long in hash_map does not compile
- From: "mchaisso at bioinf dot ucsd dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 19 Sep 2003 04:59:29 -0000
- Subject: [Bug c++/12338] New: long long in hash_map does not compile
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12338
Summary: long long in hash_map does not compile
Product: gcc
Version: 3.2
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: mchaisso at bioinf dot ucsd dot edu
CC: gcc-bugs at gcc dot gnu dot org
The following code compiles when "long long" is replaced by int. It also
compiles with the gcc 3.1 compiled for DEC-alpha.
#include <iostream>
#include <ext/hash_map>
int main() {
__gnu_cxx::hash_map<long long, int> hm;
hm[34] = 343;
hm[23] = 349;
std::cout << "hello world" << hm[23] << std::endl;
return 0;
}