[Bug c++/12338] New: long long in hash_map does not compile

mchaisso at bioinf dot ucsd dot edu gcc-bugzilla@gcc.gnu.org
Fri Sep 19 05:30:00 GMT 2003


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;
}



More information about the Gcc-bugs mailing list