This is the mail archive of the gcc-help@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]
Other format: [Raw text]

Re: Stack allocation skips vtable, optimalisation option?


Hi Daan,

Even with -O0, the compiler *KNOWS* that foo is a Foo (regardless of your
copy constructor shenanigans), and hence can call Foo::foo directly in main,
without using the vfntbl lookup.

HTH,
--Eljay



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