Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
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
binary
Implements.cpp
return reference (msvc)
Copy vs Reference
Hangman
const reference life time extension
#26.fix
fun
-1 Girene Kadar Ortalama
multiplie linked list numbers