This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: wrong code generation with egcs 1.1.2
- To: seefelds at MAGELLAN dot UMontreal dot CA
- Subject: Re: wrong code generation with egcs 1.1.2
- From: "Martin v. Loewis" <martin at mira dot isdn dot cs dot tu-berlin dot de>
- Date: Tue, 4 May 1999 23:15:28 +0200
- CC: egcs-bugs at egcs dot cygnus dot com
- References: <372EFCDB.627D25C5@magellan.umontreal.ca>
> int main(int argc, char **argv)
> {
> StageImpl *stage = new StageImpl;
> }
>
> and nm shows me that the generated object file contains a
> reference to StageImpl::StageImpl(int).
Why do you think this is an error? g++ adds an implicit integer
argument for classes with virtual bases, to tell base class ctors
whether the vbases are initialized.
My guess is that StageImpl has a virtual base, in which case this is
no error.
Hope this helps,
Martin