Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in undefined-behavior

Swapping `std::aligned_storage` instances containing non-trivially-copyable types - undefined behavior?

Skipping switch cases via false loop is a valid operation?

c c99 undefined-behavior

When is reinterpret_cast UB?

Is it undefined behavior to dereference a *mut T cast to *mut ManuallyDrop<T>?

"The implementation may assume X" implies undefined behavior when X does not hold?

C: Undefined behavior when multiplying uint16_t?

Segmentation Fault while running following C program

Do the printf statements in this example invoke Undefined Behavior?

c undefined-behavior

Is this undefined behaviour in C++ calling a function from a dangling pointer

Question on Usual Arithmetic Conversions - GCC Compiler

When undefined behavior can be considered well-known and accepted?

Does returning a bound local function object cause undefined behaviour?

Is it undefined behavior to pass a pointer to an unconstructed streambuf object to the ostream constructor?

Is it UB to twice drop the same value of a type for which needs_drop() returns false?

rust undefined-behavior

"*s = 0" being optimized out. Possible GCC 13 bug? Or some undefined behaviour?

c gcc undefined-behavior

Is INT_MIN subtracted from any integer considered undefined behavior?

initialize array, placement new, read variables, defined behavior?

Any number divided by 0 in C ,does it come under segmentation fault?