From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Artem Khodush" To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org Subject: Re: c++/3282: Problems with throw and destuctor callings Date: Thu, 21 Jun 2001 02:16:00 -0000 Message-id: <20010621091601.31982.qmail@sourceware.cygnus.com> X-SW-Source: 2001-06/msg00883.html List-Id: The following reply was made to PR c++/3282; it has been noted by GNATS. From: "Artem Khodush" To: "Bohdan Vlasyuk" Cc: , Subject: Re: c++/3282: Problems with throw and destuctor callings Date: Thu, 21 Jun 2001 13:00:03 +0400 > > #include > int global; > > class One { > public: > int num; > One() { num=++global; cout << "One " < void Copy(One second_one) { cout << "Copy " < ~One() { cout << "~One "< }; > This is not a bug. Define copy constructor for class One, like One( const One& ) { num=++global; cout<<"One copy constructor"<