This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: c++/114


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]