Search code examples
Reading double to platform endianness with union and bit shift, is it safe?...


cdecodeendiannessundefined-behaviordecoding

Read More
When does an undefined variable throw an Uncaught TypeError instead of just having a value of 'u...


javascripterror-handlingundefined-behavior

Read More
Google Sparsehash uses realloc() on type which is not trivially copyable...


c++undefined-behaviorreallocgcc8sparsehash

Read More
Unexpected virtual function dispatch when using base class reference instead of pointer...


c++shared-ptrundefined-behaviorobject-lifetimevptr

Read More
What treatment can a pointer undergo and still be valid?...


cpointersundefined-behavior

Read More
A question about union in C - store as one type and read as another - is it implementation defined?...


cundefined-behaviorunions

Read More
How does integer promotion work on C Cast?...


ctypescastingundefined-behaviorsign

Read More
Why does calling calling a pure virtual method without body does not result in linker error?...


c++constructorundefined-behaviorvirtual-functionspure-virtual

Read More
Is it OK to pass the address of an int for scanf("%x", ...)?...


cscanflanguage-lawyerundefined-behavior

Read More
reinterpret_cast bug or UB?...


c++language-lawyerundefined-behaviorreinterpret-cast

Read More
Why doesn't strict aliasing rule apply to int* and unsigned*?...


clanguage-lawyercompiler-optimizationundefined-behaviorstrict-aliasing

Read More
Wrong behavior in grep with @s...


bashgrepundefined-behavior

Read More
Vector is empty after cloning struct with uninitialized member...


debuggingrustundefined-behavior

Read More
C++ exception, undefined behavior and noexcept...


c++exceptionundefined-behaviornoexcept

Read More
At what point in the loop does integer overflow become undefined behavior?...


c++cundefined-behaviorinteger-overflow

Read More
Is a program well defined before the line that causes undefined behavior?...


cundefined-behavior

Read More
Undefined behaviour of operators in XOR swap algorithm?...


c++coperatorsswapundefined-behavior

Read More
Why isn't it undefined behaviour to destroy an object that was overwritten by placement new?...


c++language-lawyerundefined-behaviorobject-lifetimeplacement-new

Read More
Printing null pointers with %p is undefined behavior?...


clanguage-lawyerc99undefined-behaviorc11

Read More
How are garbage values for variables generated in C?...


cvariablesinitializationundefined-behavior

Read More
Is using a structure without all members assigned undefined?...


cstructlanguage-lawyerundefined-behavior

Read More
Consequences of uninitialised variables: int vs unsigned char...


c++initializationlanguage-lawyerundefined-behavior

Read More
Multiple inheritance quagmire - which class is instantiated?...


javamultiple-inheritanceundefined-behaviorauto-value

Read More
Is the right-hand side of an assignment always evaluated before the assignment?...


pythonpython-2.7undefined-behavioroperator-precedence

Read More
Are there any 2-complement platform/compiler, where signed shift doesn't do the usual thing?...


c++undefined-behavior

Read More
How could pairing new[] with delete possibly lead to memory leak only?...


c++memory-managementundefined-behavior

Read More
Function optimized to infinite loop at 'gcc -O2'...


cgccoptimizationundefined-behavior

Read More
C++ compilation bug?...


c++gccundefined-behavior

Read More
Why is this type punning not undefined behavior?...


c++undefined-behaviortype-punning

Read More
How can deleting a void pointer do anything other than invoke the global delete operator?...


c++undefined-behaviordelete-operatorvoid-pointers

Read More
BackNext