c++/2474
Lassi A. Tuura
lassi.tuura@cern.ch
Thu Apr 26 06:36:00 GMT 2001
The following reply was made to PR c++/2474; it has been noted by GNATS.
From: "Lassi A. Tuura" <lassi.tuura@cern.ch>
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<stdio.h>
> 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 <stdio.h>
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--
More information about the Gcc-prs
mailing list