Your message dated Thu, 2 Jan 2003 02:06:00 +0100
with message-id <[EMAIL PROTECTED]>
and subject line gcc report closed upstream
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 22 Feb 2001 18:38:28 +0000
>From [EMAIL PROTECTED] Thu Feb 22 12:38:28 2001
Return-path: <[EMAIL PROTECTED]>
Received: from mailout06.sul.t-online.com [::ffff:194.25.134.19] 
        by master.debian.org with esmtp (Exim 3.12 1 (Debian))
        id 14W0dH-0007KS-00; Thu, 22 Feb 2001 12:38:27 -0600
Received: from fwd02.sul.t-online.com 
        by mailout06.sul.t-online.com with smtp 
        id 14W0dF-0008Ih-02; Thu, 22 Feb 2001 19:38:25 +0100
Received: from dual.intern.brederlow.de ([EMAIL PROTECTED]) by 
fmrl02.sul.t-online.com
        with esmtp id 14W0d0-2KxWUKC; Thu, 22 Feb 2001 19:38:10 +0100
Received: from mrvn by dual.intern.brederlow.de with local (Exim 3.22 #1 
(Debian))
        id 14W0cz-0003ce-00; Thu, 22 Feb 2001 19:38:09 +0100
From: Goswin Brederlow <[EMAIL PROTECTED]>
To: Debian Bug Tracking System <[EMAIL PROTECTED]>
Subject: missing hash function for std::string
X-Reportbug-Version: 1.14
X-Mailer: reportbug 1.14
Date: Thu, 22 Feb 2001 19:38:08 +0100
Message-Id: <[EMAIL PROTECTED]>
Sender: Goswin Brederlow <[EMAIL PROTECTED]>
X-Sender: [EMAIL PROTECTED]
Delivered-To: [EMAIL PROTECTED]

Package: g++
Version: 1:2.95.3-5
Severity: normal

The STL hash_map does not work with strings. This is because no
hash<string> spezialisation is defined. The code for char* should be
used for strings also.

Heres a testcase:
----------------------------------------------------------------------
#include <hash_map>
#include <string>

// Some hash function like this one is missing
// Of cause this is a bad hack due to __s.c_str()
__STL_TEMPLATE_NULL struct hash<string>
{
  size_t operator()(const string __s) const { return 
__stl_hash_string(__s.c_str()); }
};

int main() {
        std::hash_map<std::string, std::string> myHashMap;
        myHashMap["Hallo"] = "Hallo Welt";
}
----------------------------------------------------------------------

MfG,
        Goswin

-- System Information
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux dual 2.2.17 #1 SMP Mon Sep 4 06:13:20 CEST 2000 i686

Versions of packages g++ depends on:
ii  cpp                           1:2.95.3-5 The GNU C preprocessor.           
ii  g++-2.95                      1:2.95.3-5 The GNU C++ compiler.             
ii  gcc-2.95                      1:2.95.3-5 The GNU C compiler.               


---------------------------------------
Received: (at 87063-done) by bugs.debian.org; 2 Jan 2003 01:07:19 +0000
>From [EMAIL PROTECTED] Wed Jan 01 19:07:18 2003
Return-path: <[EMAIL PROTECTED]>
Received: from mail.cs.tu-berlin.de [130.149.17.13] (root)
        by master.debian.org with esmtp (Exim 3.12 1 (Debian))
        id 18TtpN-0005u0-00; Wed, 01 Jan 2003 19:07:17 -0600
Received: from bolero.cs.tu-berlin.de ([EMAIL PROTECTED] [130.149.19.1])
        by mail.cs.tu-berlin.de (8.9.3/8.9.3) with ESMTP id CAA05068
        for <[EMAIL PROTECTED]>; Thu, 2 Jan 2003 02:06:01 +0100 (MET)
Received: (from [EMAIL PROTECTED])
        by bolero.cs.tu-berlin.de (8.11.6+Sun/8.9.3) id h02160E22611;
        Thu, 2 Jan 2003 02:06:00 +0100 (MET)
From: Matthias Klose <[EMAIL PROTECTED]>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-ID: <[EMAIL PROTECTED]>
Date: Thu, 2 Jan 2003 02:06:00 +0100
To: [EMAIL PROTECTED]
Subject: gcc report closed upstream
X-Mailer: VM 7.03 under 21.4 (patch 6) "Common Lisp" XEmacs Lucid
Delivered-To: [EMAIL PROTECTED]
X-Spam-Status: No, hits=0.6 required=5.0
        tests=SPAM_PHRASE_00_01
        version=2.41
X-Spam-Level: 

the report was closed upstream. Please see the bug log for further information.


Reply via email to