Article View: gnu.g++.bug
Article #458bug in 1.36.0: undeclared destructor
From: Dirk Grunwald
Date: Tue, 03 Oct 1989 20:48
Date: Tue, 03 Oct 1989 20:48
42 lines
1235 bytes
1235 bytes
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 <stream.h>
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]
Technical Details
Message-ID:
<12345@boulder.Colorado.EDU>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!gatech!ncar!boulder!grunwald@foobar.colorado.eduShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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