Search code examples
downcasting standard layout struct to derived struct with the same data members...


c++language-lawyerundefined-behaviortype-punning

Read More
Engineered bool compares equal to both true and false, why?...


c++booleanundefined-behavior

Read More
Is it really well defined to check pointer alignment using the pointer's integer value?...


c++pointersc++17language-lawyerundefined-behavior

Read More
Temporary in a function call: UB?...


c++language-lawyerundefined-behavior

Read More
Are these expressions involving compound literals defined in C?...


clanguage-lawyerundefined-behavior

Read More
Is it undefined behavior to modify a value that I also have a const pointer pointing to...


cpointersconstantsundefined-behavior

Read More
Can I assign or return a struct with unassigned elements in C?...


cstructinitializationlanguage-lawyerundefined-behavior

Read More
Is i += ++i undefined behavior in C++11?...


c++c++11undefined-behaviorcompound-assignment

Read More
Is (++i)++ undefined behavior?...


c++c++11language-lawyerundefined-behaviorsequence-points

Read More
C++ "Undefined" vs "Unspecified" behavior for function calls: f(i=-2, i=-2) is n...


c++c++17undefined-behaviorfunction-callunspecified-behavior

Read More
Why doesn't -fsanitize=undefined pick up on (what I think is) UB?...


c++g++undefined-behaviorsanitizer

Read More
Function not called in code gets called at runtime...


c++clangcompiler-optimizationundefined-behaviorclang++

Read More
std::launder do not work on gcc with -O3 option?...


c++c++17undefined-behaviorstdlaunder

Read More
Does the definition int a = 0, b = a++, c = a++; have defined behavior in C?...


clanguage-lawyerundefined-behaviorsequence-pointsc17

Read More
Is dereference null pointer UB in C++20?...


c++language-lawyerc++20undefined-behavior

Read More
Can you ensure overflow wrapping behavior for signed integer arithmetic in C++?...


c++mathintegerundefined-behavior

Read More
What optimizations are possible when loop variable is undefined on overflow?...


ccompiler-optimizationundefined-behaviorinteger-overflow

Read More
Does any popular compiler exploit undefined behaviors when optimization is off?...


cundefined-behavior

Read More
Segmentation Fault while running following C program...


arrayscfor-loopundefined-behaviorstring-literals

Read More
Trying to understand --x vs x-- in C++...


c++c++17undefined-behaviorexpression-evaluation

Read More
Are memory leaks "undefined behavior" class problem in C++?...


c++memory-managementmemory-leaksundefined-behavior

Read More
`UnsafeCell` shared accross threads with no locking - this can cause UB right?...


rustundefined-behaviorunsafe

Read More
Can giving input too early cause glitches?...


pythonwindowsloopsinputundefined-behavior

Read More
Is using declared and initialized but undefined variables undefined behavior?...


c++staticlanguage-lawyerundefined-behavior

Read More
Throwing C++ exception through C function call...


c++cfunctionexceptionundefined-behavior

Read More
c/c++ -- Is writing to multi-dimesional array from 0 offset UB?...


c++cmultidimensional-arraylanguage-lawyerundefined-behavior

Read More
Is decrement of bool variable defined in С?...


cbooleanincrementundefined-behaviordecrement

Read More
Why does conversion from int to float not take place when we pass 'int' to a function expect...


cfunctiontype-conversionundefined-behavior

Read More
Aware of issues during casting a struct of a sized pointer to its const-equivalent...


ctype-conversionundefined-behaviortype-punning

Read More
Is it UB to compare pointers casted from integers?...


clanguage-lawyerstandardsundefined-behavior

Read More
BackNext