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: C++ Patch (Was: Virtual Mem Func Ptr Call Fails When BaseClass Has No Vtable)



    >> Yes, sounds like the right fix to me.  Please do up the fix and
    >> submit it.

    Martin> Attached below. Because of re-indentation, it looks larger
    Martin> than it actually is.

This is fine. 

!       /* This used avoid checking for virtual functions if basetype
! 	 has no virtual functions, according to an earlier ANSI draft.
! 	 With the final ISO C++ rules, such an optimization is
! 	 incorrect.  */

Say `used to'; just `used' is ungrammatical.  And one more sentence
explaining that a virtual function in the derived class can be called
with a pointer to member of the base class wouldn't hurt.

Thanks!

--
Mark Mitchell                   mark@codesourcery.com
CodeSourcery, LLC               http://www.codesourcery.com


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