c++/114

Matthias Klose doko@cs.tu-berlin.de
Sat Jun 30 05:13:00 GMT 2001


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);
};



More information about the Gcc-bugs mailing list