This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: wrong code generation with egcs 1.1.2


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]