From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10800 invoked by alias); 12 Nov 2001 22:46:07 -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 10781 invoked by uid 71); 12 Nov 2001 22:46:03 -0000 Date: Thu, 01 Nov 2001 15:48:00 -0000 Message-ID: <20011112224603.10780.qmail@sourceware.cygnus.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: "Aloysius A. Wild III" Subject: Re: c++/4861 Reply-To: "Aloysius A. Wild III" X-SW-Source: 2001-11/txt/msg00020.txt.bz2 List-Id: The following reply was made to PR c++/4861; it has been noted by GNATS. From: "Aloysius A. Wild III" To: gcc-gnats@gcc.gnu.org, gcc-prs@gcc.gnu.org, aaw@rincewind.tv, gcc-bugs@gcc.gnu.org, nobody@gcc.gnu.org Cc: Subject: Re: c++/4861 Date: Mon, 12 Nov 2001 14:30:58 -0800 This is a multi-part message in MIME format. --------------070207030005010402050701 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&pr=4861&database=gcc I've attached an un-preprocessed source file. Note that this problem exists in both 3.0.2 and the current 3.1 snapshot. Ollie --------------070207030005010402050701 Content-Type: text/plain; name="gcc-bug.cpp" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="gcc-bug.cpp" #include template class B { public: ~B() { std::cerr << "Running B::~B()" << std::endl; f(); } virtual void f() { std::cerr << "Running B::f()" << std::endl; } }; class D : public B { public: ~D() { std::cerr << "Running D::~D()" << std::endl; f(); } virtual void f() { std::cerr << "Running D::f()" << std::endl; } }; int main(int argc, char **argv) { D d; return 0; } --------------070207030005010402050701--