Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in undefined-behavior

Different results for idiv instruction

Segmentation fault on gcc caused by lambda wrapper over variadic template function call

Is it well-defined behaviour to exit the program before main?

Is this downcasting undefined?

Non-trivial example of undefined behavior with const_cast

c++ undefined-behavior

Are non-terminating constexpr functions well-defined?

Division by zero and undefined behaviour in C

uninitialized local variable with c++11 default

Is an (empty) infinite loop undefined behavior in C?

Throwing C++ exception through C function call

Do aliasing mutable raw pointers (*mut T) cause undefined behaviour?

Is it undefined behavior to #define/#undef an identifier with special meaning?

Why does operator* of rvalue unique_ptr return an lvalue?

Weird behavior with a manually defined strlen

Do parentheses force order of evaluation and make an undefined expression defined?

Is it well-defined/legal to placement-new multiple times at the same address?

Does not evaluating the expression to which sizeof is applied make it legal to dereference a null or invalid pointer inside sizeof in C++?

Does `int a = 0, b = a` have undefined behavior? [duplicate]

Is `*--p` actually legal(well formed) in C++03

Why does Rust disallow mutable aliasing?