4 ms·
The compiler is still able to devirtualize and inline the p->f() call, even with an external linkage call preceding it. https://clang.godbolt.org/z/jE3o56ozz ht
by jart 5mo ago
The compiler is still able to devirtualize and inline the p->f() call, even with an external linkage call preceding it. https://clang.godbolt.org/z/jE3o56ozz https://clang.godbolt.org/z/jE3o56ozz
- akoboldfrying 5mo agoThat's interesting that it does devirtualise in practice, but I'm talking about whether it ought to be allowed to. The conclusion I reached is that it ought not to be, making the behaviour you demonstrated a compiler bug. With that said, it was a while ago, and I may have gotten the details wrong.
- jart 4mo agohttps://justine.lol/tmp/your-opinion-has-this-much-value.gif https://justine.lol/tmp/your-opinion-has-this-much-value.gif
- akoboldfrying 4mo agoWhat the standard says should happen is not my opinion. You misunderstood a basic claim, and then were rude about it. Get fucked.