From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31256 invoked by alias); 21 Jan 2004 18:33:45 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 31212 invoked by uid 48); 21 Jan 2004 18:33:43 -0000 Date: Wed, 21 Jan 2004 18:33:00 -0000 From: "wyderski at ii dot uni dot wroc dot pl" To: gcc-bugs@gcc.gnu.org Message-ID: <20040121183337.13794.wyderski@ii.uni.wroc.pl> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug other/13794] New: hash_set doesn't work X-Bugzilla-Reason: CC X-SW-Source: 2004-01/txt/msg02642.txt.bz2 List-Id: When trying to compile the following example: -----8<------- #include #include void test() { __gnu_cxx::hash_set s; s.insert("One"); s.insert("Two"); s.insert("Three"); } -----8<----- the compiler reports: -----8<------ c:/djgpp/lang/cxx/3.31/ext/stlhashtable.h: In member function `size_t __gnu_cxx::hashtable<_Val, _Key, _HashFcn, _ExtractKey, _EqualKey, _Alloc>::_M_bkt_num_key(const _Key&, long unsigned int) const [with _Val = std::string, _Key = std::string, _HashFcn = __gnu_cxx::hash, _ExtractKey = std::_Identity, _EqualKey = std::equal_to, _Alloc = std::allocator]': c:/djgpp/lang/cxx/3.31/ext/stlhashtable.h:519: instantiated from `size_t __gnu _cxx::hashtable<_Val, _Key, _HashFcn, _ExtractKey, _EqualKey, _Alloc>::_M_bkt_nu m(const _Val&, long unsigned int) const [with _Val = std::string, _Key = std::st ring, _HashFcn = __gnu_cxx::hash, _ExtractKey = std::_Identity, _EqualKey = std::equal_to, _Alloc = std::allocator]' c:/djgpp/lang/cxx/3.31/ext/stlhashtable.h:884: instantiated from `void __gnu_c xx::hashtable<_Val, _Key, _HashFcn, _ExtractKey, _EqualKey, _Alloc>::resize(long unsigned int) [with _Val = std::string, _Key = std::string, _HashFcn = __gnu_cx x::hash, _ExtractKey = std::_Identity, _EqualKey = std ::equal_to, _Alloc = std::allocator]' c:/djgpp/lang/cxx/3.31/ext/stlhashtable.h:378: instantiated from `std::pair<__ gnu_cxx::_Hashtable_iterator<_Val, _Key, _HashFcn, _ExtractKey, _EqualKey, _Allo c>, bool> __gnu_cxx::hashtable<_Val, _Key, _HashFcn, _ExtractKey, _EqualKey, _Al loc>::insert_unique(const _Val&) [with _Val = std::string, _Key = std::string, _ HashFcn = __gnu_cxx::hash, _ExtractKey = std::_Identity, _EqualKey = std::equal_to, _Alloc = std::allocator] ' c:/djgpp/lang/cxx/3.31/ext/hash_set:175: instantiated from `std::pair, _EqualKe y, _Alloc>::const_iterator, bool> __gnu_cxx::hash_set<_Value, _HashFcn, _EqualKe y, _Alloc>::insert(typename __gnu_cxx::hashtable<_Value, _Value, _HashFcn, std:: _Identity<_Value>, _EqualKey, _Alloc>::value_type&) [with _Value = std::string, _HashFcn = __gnu_cxx::hash, _EqualKey = std::equal_to, _Alloc = std::allocator]' AST.cpp:159: instantiated from here c:/djgpp/lang/cxx/3.31/ext/stlhashtable.h:514: error: no match for call to `( const __gnu_cxx::hash) (const std::basic_string, std::allocator >&)' make.exe: *** [AST.o] Error 1 --------- 8< -------- -- Summary: hash_set doesn't work Product: gcc Version: 3.3.1 Status: UNCONFIRMED Severity: normal Priority: P2 Component: other AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: wyderski at ii dot uni dot wroc dot pl CC: gcc-bugs at gcc dot gnu dot org GCC host triplet: IA-32, Windows XP GCC target triplet: IA-32, MS-DOS http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13794