Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in undefined-behavior

Can a macro be defined to provide function-like sequencing?

Explanation of output of C code

c undefined-behavior

How come I can capture an object being constructed in the lambda doing the construction? [duplicate]

Manually calling destructor before delete

It it UB to read some contiguous array cells as a larger type?

Is dereferencing std::span::end always undefined?

Is this a well-defined way to access bitfield bits by index in C11

Are nullptr references undefined behaviour in C++? [duplicate]

Accessing an uninitialised static field in Java

Why is this usage of setjmp/longjmp undefined behavior?

Is this expression statement in a C programming exam question undefined behavior?

c undefined-behavior

Is it well defined to cast to an identical layout with const members?

Indirectly calling non-const function on a const object

Is computing a pointer to uninitialized memory undefined behavior in C?

Calling C function which takes no parameters with parameters

Is left shifting unsigned int more than its bit field width, but less than its type size undefined?

Bitwise operations act outside of type width in C; Compiler Bug or Within Spec?

Undefined behavior allowed in constexpr -- compiler bug?

C++ pointer weird undefined behaviour

What sequence of operations could possibly have `int i = 1; f(i++, i);` invoke `f(2, 2)`?