(This should have been on the gcc-help list.)
> I may be remembering wrong, but -- doesn't dynamic_cast look for a vtable?
It uses a vtable if one is present, it can't cause one to be
introduced, so ...
>So if you do a dynamic cast mentioning that class you'd get such a reference.
No.
> Or is
> On Jun 6, 2021, at 5:41 PM, Paul Smith wrote:
>
> I have a class which is NOT, as far as I can see, polymorphic.
>
> It doesn't inherit from any other class and none of its methods are
> declared virtual. The class implementation and all its callers all
> compile just fine.
>
> Is there s
On Sun, 2021-06-06 at 17:41 -0400, Paul Smith wrote:
> How can I figure out why the compiler decides, while compiling
> foo.cxx, that MyClass is virtual and needs a vtable when as far as I
> can tell it's not (if I use nm on MyClass.o I see no hints of vtable
> etc.)
Err... I think this might have