Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!gatech!ncar!boulder!grunwald@foobar.colorado.edu
From: grunwald@foobar.colorado.edu (Dirk Grunwald)
Newsgroups: gnu.g++.bug
Subject: bug in 1.36.0: undeclared destructor
Message-ID: <12345@boulder.Colorado.EDU>
Date: 3 Oct 89 20:48:36 GMT
Sender: news@boulder.Colorado.EDU
Reply-To: grunwald@foobar.colorado.edu
Distribution: gnu
Organization: University of Colorado at Boulder
Lines: 42


configuration: decstation-3100
version: latest
problem:
	the following class doesn't declare ~foo, but no message is generated
	when we define it.

btw, I've got collect & gcc working on the pmax with the new gnulib. You
can't simply change things as I had previously stated because gnulib3.c
has a different format for the ctor/dtor list. Patches to come soon. 


[foobar-202] cat test2.cc
#include 

char *STR = "hi mom\n";

class foo {
public:
    foo();
};

foo::foo()
{
    ::STR = "initializer got done\n";
}

foo::~foo()
{
    system("echo hi - did deSTRuctor");
}

foo bar;

main()
{
    cerr << "does stdout work?\n";
    cerr << STR << "\n";
}
[foobar-203] gcc -c test2.cc
[foobar-204] gcc -c -Wall test2.cc
[foobar-205]