Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in undefined-behavior

Why deleting void* is UB rather than compilation error?

Is (int32_t) 255 << 24 undefined behavior in gcc (C++11)?

Why does char* cause undefined behaviour while char[] doesn't?

C code with undefined results, compiler generates invalid code (with -O3)

c gcc undefined-behavior

Why specializing a type_trait could result in undefined behaviour?

Undefined behaviour with const_cast

Order of evaluation of arguments in function calling?

How does std::launder affect containers?

Generic char[] based storage and avoiding strict-aliasing related UB

Can an object erase itself from a standard C++ container? [duplicate]

Does undefined behavior affect static_assert?

What happens if undefined C++ behaviour meets C defined behaviour?

c++ c undefined-behavior

Using std:vector as low level buffer

Which integral promotions do take place when printing a char?

_Pragma and macro substitution

c macros undefined-behavior

(Where) Does clang document implementation-defined behavior?

c gcc clang undefined-behavior

Does std::move() invalidate iterators? [duplicate]

Strict aliasing in Rust?

Is `string.assign(string.data(), 5)` well-defined or UB?

c++ stl undefined-behavior

When is pointer subtraction undefined in C?