This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]