Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in undefined-behavior

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?

Is there any guarantee about whether code with UB should be reachable?

How can both (i + 1) < ii and (i + 1) > ii both be true?

Why is initialization of a new variable by itself valid? [duplicate]

Undefined behaviour of operators in XOR swap algorithm?

Incrementing NULL pointer in C

Macros and postincrement

c macros undefined-behavior

Is printing a null-pointer Undefined Behavior?

Why does (*p=*p) & (*q=*q); in C trigger undefined behavior

Is accessing data outside an array incorrect if you don't use it?

Passing non-lvalue as const reference argument. Is the temp created in local scope or caller scope?

Is using const_cast for read-only access to a const object allowed?

behavior of const_cast in C++ [duplicate]

The lifetime of a reference with regard to its target

Example of error caused by UB of incrementing a NULL pointer

c++ undefined-behavior