Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Blog
MSVC C++ runtime bug in dynamic_cast
#include <stdio.h> struct Class1 { virtual ~Class1() {} }; struct Class2 { virtual ~Class2() {} }; struct Class3 { virtual ~Class3() {} }; struct Class4 : public Class2 {}; struct Class7 : protected virtual Class4, public Class2 {}; int main() { Class7 c7; printf("dynamic_cast gives %p, should be nullptr\n", dynamic_cast<Class7*>((Class2*)(Class4*)&c7)); }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
bool behaviour (convertion/promotion) for logical and artihmetic operators
32
hangman
timeConversion
Runner-mt
Noexcept
StreamParam
CT1
C++ standard library formatted input hexadecimal float without prefix or exponent test case
Program_1_rstring
stackse - search stackoverflow differently
Please log in to post a comment.