Your message dated Sun, 21 Sep 2003 00:13:44 -0400 with message-id <[EMAIL PROTECTED]> and subject line Bug#211898: libstdc++5-dev: data_type typedef not recognized for std::map 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; 21 Sep 2003 02:57:15 +0000 >From [EMAIL PROTECTED] Sat Sep 20 21:55:04 2003 Return-path: <[EMAIL PROTECTED]> Received: from usw3620-11-205-162-12-51.w-link.net (ouroboros) [205.162.12.51] by master.debian.org with esmtp (Exim 3.35 1 (Debian)) id 1A0uNM-0005rz-00; Sat, 20 Sep 2003 21:55:04 -0500 Received: from rsteinke by ouroboros with local (Exim 3.36 #1 (Debian)) id 1A0uNP-0005j8-00; Sat, 20 Sep 2003 19:55:07 -0700 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Ron Steinke <[EMAIL PROTECTED]> To: Debian Bug Tracking System <[EMAIL PROTECTED]> Subject: libstdc++5-dev: data_type typedef not recognized for std::map X-Mailer: reportbug 2.28 Date: Sat, 20 Sep 2003 19:55:07 -0700 Message-Id: <[EMAIL PROTECTED]> Delivered-To: [EMAIL PROTECTED] X-Spam-Status: No, hits=-5.0 required=4.0 tests=HAS_PACKAGE version=2.53-bugs.debian.org_2003_9_20 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.53-bugs.debian.org_2003_9_20 (1.174.2.15-2003-03-30-exp) Package: libstdc++5-dev Version: 1:3.2.3-8 Severity: normal The following test code: #include <map> typedef std::map<int,int> MapType; int main() { MapType::key_type foo = 0; MapType::data_type bar = 0; return bar; } fails with an error at the MapType::data_type line: map_data_type_bug.cpp: In function `int main()': map_data_type_bug.cpp:8: error: `data_type' is not a member of type ` std::map<int, int, std::less<int>, std::allocator<std::pair<const int, int> > >' map_data_type_bug.cpp:8: error: syntax error before `=' token map_data_type_bug.cpp:10: error: `bar' undeclared (first use this function) map_data_type_bug.cpp:10: error: (Each undeclared identifier is reported only once for each function it appears in.) key_type and value_type are recognized, but data_type is not. This breaks conformance with the STL standard (and, of course, my code :)). -- System Information: Debian Release: testing/unstable Architecture: i386 Kernel: Linux ouroboros 2.4.20 #5 Mon Apr 14 17:15:56 PDT 2003 i686 Locale: LANG=C, LC_CTYPE=C Versions of packages libstdc++5-dev depends on: ii g++-3.2 1:3.2.3-8 The GNU C++ compiler ii gcc-3.2-base 1:3.2.3-8 The GNU Compiler Collection (base ii libc6-dev 2.3.2-7 GNU C Library: Development Librari ii libstdc++5 1:3.3.1-0pre0 The GNU Standard C++ Library v3 -- no debconf information --------------------------------------- Received: (at 211898-done) by bugs.debian.org; 21 Sep 2003 04:13:47 +0000 >From [EMAIL PROTECTED] Sat Sep 20 23:13:45 2003 Return-path: <[EMAIL PROTECTED]> Received: from ns2.jaj.com (disaster.jaj.com) [66.93.21.106] by master.debian.org with esmtp (Exim 3.35 1 (Debian)) id 1A0vbU-0006Fr-00; Sat, 20 Sep 2003 23:13:45 -0500 Received: from disaster.jaj.com (localhost.localhost [127.0.0.1]) by disaster.jaj.com (8.12.10/8.12.9) with ESMTP id h8L4DihO014618; Sun, 21 Sep 2003 00:13:44 -0400 Received: (from [EMAIL PROTECTED]) by disaster.jaj.com (8.12.10/8.12.9/Submit) id h8L4DiXB014617; Sun, 21 Sep 2003 00:13:44 -0400 Date: Sun, 21 Sep 2003 00:13:44 -0400 From: Phil Edwards <[EMAIL PROTECTED]> To: Ron Steinke <[EMAIL PROTECTED]>, [EMAIL PROTECTED] Subject: Re: Bug#211898: libstdc++5-dev: data_type typedef not recognized for std::map Message-ID: <[EMAIL PROTECTED]> References: <[EMAIL PROTECTED]> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <[EMAIL PROTECTED]> User-Agent: Mutt/1.5.4i Delivered-To: [EMAIL PROTECTED] X-Spam-Status: No, hits=-5.7 required=4.0 tests=EMAIL_ATTRIBUTION,QUOTED_EMAIL_TEXT version=2.53-bugs.debian.org_2003_9_20 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.53-bugs.debian.org_2003_9_20 (1.174.2.15-2003-03-30-exp) On Sat, Sep 20, 2003 at 07:55:07PM -0700, Ron Steinke wrote: > > The following test code: is broken. > key_type and value_type are recognized, but data_type is not. This breaks > conformance with the STL standard (and, of course, my code :)). There is no "STL standard". The ISO C++ Standard defines no such typedef as data_type; see clause 23. -- Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it. - Brian W. Kernighan