This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/114
- To: martin at loewis dot home dot cs dot tu-berlin dot de, gcc-prs at gcc dot gnu dot org, snowball3 at bigfoot dot com, gcc-bugs at gcc dot gnu dot org
- Subject: Re: c++/114
- From: Matthias Klose <doko at cs dot tu-berlin dot de>
- Date: Sat, 30 Jun 2001 14:09:45 +0200
- CC: 61806-quiet at bugs dot debian dot org
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%26pr=114%26database=gcc
the code example in the Debian BTS (http://bugs.debian.org/61806)
seems to work with g++-3.0, although c++/114 is still kept open.
#include <iostream.h>
int n;
void initialize (void) __attribute__ ((constructor));
void initialize (void)
{
cout << "initialization" << endl;
n = 1;
};
int main ()
{
cout << "n = " << n << endl;
exit(0);
};