From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22752 invoked by alias); 26 Feb 2003 09:06:03 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 22705 invoked by uid 71); 26 Feb 2003 09:06:01 -0000 Resent-Date: 26 Feb 2003 09:06:01 -0000 Resent-Message-ID: <20030226090601.22704.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, peturr02@ru.is Received: (qmail 13397 invoked by uid 48); 26 Feb 2003 08:57:36 -0000 Message-Id: <20030226085736.13396.qmail@sources.redhat.com> Date: Wed, 26 Feb 2003 09:06:00 -0000 From: peturr02@ru.is Reply-To: peturr02@ru.is To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version: gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: libstdc++/9858: Extra virtual functions in ctype X-SW-Source: 2003-02/txt/msg01365.txt.bz2 List-Id: >Number: 9858 >Category: libstdc++ >Synopsis: Extra virtual functions in ctype >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Wed Feb 26 09:06:01 UTC 2003 >Closed-Date: >Last-Modified: >Originator: peturr02@ru.is >Release: gcc-3.2.1 >Organization: >Environment: Red Hat Linux 8.0 >Description: ctype has some non-standard virtual functions, for example bool do_is(mask, char). >How-To-Repeat: See attachment. >Fix: >Release-Note: >Audit-Trail: >Unformatted: ----gnatsweb-attachment---- Content-Type: text/plain; name="ctypebug2.cc" Content-Disposition: inline; filename="ctypebug2.cc" #include #undef NDEBUG #include bool called = false; class Derived : public std::ctype { public: bool do_is(mask, char_type) const { } }; class Derived2 : public Derived { public: bool do_is(mask, char_type) const { called = true; } }; int main() { Derived2 d2; const Derived& dr = d2; called = false; dr.do_is(std::ctype_base::space, 'a'); assert(!called); return 0; }