From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Lassi A. Tuura" To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org Subject: Re: c++/2474 Date: Thu, 26 Apr 2001 06:36:00 -0000 Message-id: <20010426133602.660.qmail@sourceware.cygnus.com> X-SW-Source: 2001-04/msg00572.html List-Id: The following reply was made to PR c++/2474; it has been noted by GNATS. From: "Lassi A. Tuura" To: nathan@gcc.gnu.org Cc: gcc-gnats@gcc.gnu.org Subject: Re: c++/2474 Date: Thu, 26 Apr 2001 15:27:26 +0200 This is a multi-part message in MIME format. --------------25DF88F96FD59A4BF698B99B Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit > the submitted code consisted only of a comment and #include > please provide preprocessed source code. My apologies! Obviously uploading the file from my browser didn't work too well or I did something silly... I've attached the file to this mail, hopefully that will come across better. If you have any further problems, please let me know! //lat -- The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore all progress depends on the unreasonable man. --George Bernard Shaw --------------25DF88F96FD59A4BF698B99B Content-Type: text/plain; charset=us-ascii; name="dtor.cxx" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="dtor.cxx" // c++ dtor.cxx && ./a.out #include struct X { X (void) { printf("X::X\n"); } ~X (void) { printf("X::~X\n"); } }; X &f (void) { printf ("f()\n"); static X x; return x; } struct Y { Y (void) { printf("Y::Y\n"); f(); } ~Y (void) { printf("Y::~Y\n"); } }; Y y; int main (int, char **) { fprintf(stdout, "main\n"); return 0; } --------------25DF88F96FD59A4BF698B99B--