Search code examples
Assigning an int's own address to its value...


c++cundefined-behaviorobject-construction

Read More
Why are these constructs using pre and post-increment undefined behavior?...


cincrementundefined-behavioroperator-precedencesequence-points

Read More
Is a^a or a-a undefined behaviour if a is not initialized?...


cundefined-behavior

Read More
Is Insertion into a vector while also accessing a vector undefined behavior?...


c++stdundefined-behavior

Read More
Different output on GCC and on Visual Studio...


c++visual-studiogccexpressionundefined-behavior

Read More
Is it UB to read bytes from malloc() without initializing them first?...


cundefined-behavior

Read More
Why is it undefined behavior to call operator* on an empty std::optional if I don't access the r...


c++undefined-behaviorstdoptional

Read More
Can guaranteed UB be rejected at compile-time?...


c++clanguage-lawyerundefined-behavior

Read More
Is use of empty std::optional<string> UB or not?...


c++undefined-behaviorstdoptional

Read More
Strict aliasing of first struct member through opaque pointer in C...


clanguage-lawyerundefined-behaviorstrict-aliasing

Read More
Why is dereferencing a null pointer undefined behaviour?...


c++pointersundefined-behaviorlanguage-design

Read More
What are sequence points, and how do they relate to undefined behavior?...


c++undefined-behaviorc++-faqsequence-points

Read More
Is it undefined behavior to pass a pointer to an unconstructed streambuf object to the ostream const...


c++language-lawyerundefined-behavioriostream

Read More
Is logical shift left by word size undefined behavior in C#?...


c#.net-coreundefined-behavior

Read More
Is "static int* foo()", in C, a static function returning a pointer, or a function returni...


cfunctionpointersundefined-behavior

Read More
Can you sometimes rely on machine-dependent behavior, even when the C standard considers it undefine...


cundefined-behavior

Read More
What should happen when printing an uninitialized variable?...


c++initializationundefined-behavior

Read More
How to handle "reference to packed field is unaligned" error?...


rustreferencealignmentundefined-behaviorpacked

Read More
Using std::string and int inside the union...


c++structunionundefined-behavior

Read More
Is the calculation of byte pointer offsets between non-array composition members defined?...


c++language-lawyerundefined-behavior

Read More
What is undefined behaviour in these pointer conversions?...


c++undefined-behavior

Read More
Undefined behavior when calling FD_ISSET...


cundefined-behaviorposix-select

Read More
Dereferencing pointer cast from an integer of a valid memory address give Segmentation fault...


cpointersundefined-behaviordereference

Read More
In C++, does initializing a global variable with itself have undefined behaviour?...


c++language-lawyerundefined-behavior

Read More
Undefined behavior with pointer casts in C99 and MISRA C:2012...


cpointersundefined-behaviorc99misra

Read More
What is erroneous behavior? How is it different from undefined behavior?...


c++undefined-behaviorc++26erroneous-behavior

Read More
Infinite loop vs infinite recursion. Are both undefined?...


c++loopsrecursionlanguage-lawyerundefined-behavior

Read More
Benefit of inifinite loops without side effects in C++ being undefined behavior compared to C?...


c++cinfinite-loopcompiler-optimizationundefined-behavior

Read More
Boost ASIO "Bad address" error when passing unique_ptr to completion handler...


c++boostundefined-behaviorunique-ptrasio

Read More
Incorrect implementation of calloc() introduces division by zero and how to detect it via testing?...


cunit-testingtestingmallocundefined-behavior

Read More
BackNext