Hello all, I've been looking into a compiler optimization implemented by clang but not gcc that substitutes a __dynamic_cast call for a simple vtable ptr comparison in the case that the class being cast to is final.
However this brings issues with it in some cases (specified in thread). I believe having the optimization disabled by default, but adding a compiler flag to enable it would be ideal. Code for the optimization is mostly done so I'm looking to have this optimization available in gcc somehow now, interested in hearing any opinions on this :) thread link: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63164#add_comment This e-mail and any attachments may contain information that is confidential and proprietary and otherwise protected from disclosure. If you are not the intended recipient of this e-mail, do not read, duplicate or redistribute it by any means. Please immediately delete it and any attachments and notify the sender that you have received it by mistake. Unintended recipients are prohibited from taking action on the basis of information in this e-mail or any attachments. The DRW Companies make no representations that this e-mail or any attachments are free of computer viruses or other defects.