https://llvm.org/bugs/show_bug.cgi?id=26095
George Burgess <george.burgess...@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |INVALID --- Comment #3 from George Burgess <george.burgess...@gmail.com> --- After consulting someone with far more knowledge of C++ than I, it seems that the example program does have UB; casting from base->derived using static_cast is UB if the pointee isn't an instance of derived. Oops. :) Closing this. -- You are receiving this mail because: You are on the CC list for the bug.
_______________________________________________ llvm-bugs mailing list llvm-bugs@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs