Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in undefined-behavior

Threshold an absolute value

Is over/underflow an undefined behavior at execution time?

Is comparing to a pointer one element past the end of an array well-defined?

C standard regarding pointer arithmetic outside arrays

How does an uninitialized variable get a random value?

Why does returning a reference to a automatic variable work?

Filling a std::array at compile time and possible undefined behaviour with const_cast

How to catch undefined behaviour in function argument initialization

Out of the bounds in C++ and undefined behaviour

Is (++i)++ undefined behavior?

Undefined behavior causing time travel

c++ undefined-behavior

Does calling printf without a proper prototype invoke undefined behavior?

Does this code produce Undefined Behavior or it is merely Unspecified Behavior?

Why worry about 'undefined behavior' in >> of signed type?

Is SSE2 signed integer overflow undefined?

Swap integers via XOR in single line. Is it really allowed in c++11?

Rationale for pointer comparisons outside an array to be UB

Code crashes when derived class' destructor is virtual and base class' dtor is not

Why is writing to a non-const object after casting away const of pointer to that object not UB?

Is the behavior of i = post_increment_i() specified, unspecified, or undefined?