Hacker News new | ask | show | jobs
by jart 29 days 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
1 comments

That'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.
What the standard says should happen is not my opinion.

You misunderstood a basic claim, and then were rude about it. Get fucked.