From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31509 invoked by alias); 5 Feb 2006 06:20:53 -0000 Received: (qmail 31496 invoked by uid 48); 5 Feb 2006 06:20:50 -0000 Date: Sun, 05 Feb 2006 06:20:00 -0000 Subject: [Bug c++/26100] New: Destructor called twice X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "igodard at pacbell dot net" 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 X-SW-Source: 2006-02/txt/msg00383.txt.bz2 List-Id: The attached code does various things with a type ("inv") that increments a count on constructor calls and decrements on destructor calls. As there are no declarations of this type, only temporaries, the net should be zero at the end of each statement. Unfortunately, the count goes negative. Ivan -- Summary: Destructor called twice Product: gcc Version: 3.4.4 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: igodard at pacbell dot net http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26100