🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.g++.lib.bug
Article #34

constructor forgotten on vax

#34
From: Daniel R. Grayson
Date: Mon, 06 Apr 1992 22:22
18 lines
1098 bytes
On a vaxstation II under Ultrix 2.0 with gcc version 2.1:

"This is version 1.91 of libg++, the GNU C++ class library."

>From the test-install directory:

uiucmath% foo_main.run
Constructing Foo(1) "static_foo2" at 7fffdf68
Initializing Foo(2) "static_foo2" at 00001884 with Foo(1) 7fffdf68
Destructing Foo(1) "static_foo2" at 7fffdf68 (remaining foos: 1)
foo_main.cc:32: failed assertion `Foo::nb_foos() == 2'
Illegal instruction

Apparently static_foo1 is not getting constructed.  Any help would be
appreciated.

I don't know how the linker assembles calls to the initializing constructors
before main is called, so I don't know how to check up on that procedure.
Technical Details
Message-ID: <9204062222.AA12392@uiucmath.math.uiuc.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!uiucmath.math.uiuc.edu!dan

Show Full Headers
Complete Article Headers
Newsgroups: gnu.g++.lib.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!uiucmath.math.uiuc.edu!dan
From: dan@uiucmath.math.uiuc.edu (Daniel R. Grayson)
Subject: constructor forgotten on vax
Message-ID: <9204062222.AA12392@uiucmath.math.uiuc.edu>
Sender: gnulists@ai.mit.edu
Organization: GNUs Not Usenet
Distribution: gnu
Date: Mon, 6 Apr 1992 22:22:56 GMT
Approved: bug-lib-g++@prep.ai.mit.edu
Lines: 19