g++3: Static Initializers occur twice in Binary

Jim Wilson wilson@specifixinc.com
Tue Dec 2 00:56:00 GMT 2003


Frank Mehnert wrote:
> in the attached example, the constructor of class A is generated twice.

If you feed the mangled function names through c++filt, you will see 
that one is an "in-charge" constructor, and the other is a 
"not-in-charge" constructor.

I don't know what that means though.  My 17 year old Stroustrup book 
isn't a very good C++ reference anymore.
-- 
Jim Wilson, GNU Tools Support, http://www.SpecifixInc.com



More information about the Gcc mailing list