Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in undefined-behavior

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?

In C, if I cast & dereference a pointer, does it matter which one I do first?

How to spot undefined behavior

c++ c undefined-behavior

Assigning a reference by dereferencing a NULL pointer

Is using sizeof on a variable where a type of the same name exists well defined?

c sizeof undefined-behavior

Are there sequence points in the expression a^=b^=a^=b, or is it undefined?

GCC 4.8 with GNU STL produces bad code for std::string constructor?

c++ gcc stl undefined-behavior