Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in undefined-behavior

Is using std::span into an std::vector after push_back is called undefined behavior

How to access an object representation according to the c++ standard?

How to check if a string passed as argument is a modifiable string

Is returning a pointer to a local variable always undefined behavior [duplicate]

Should a boolean predicate for std::condition_variable be volatile in C++?

Is it technically UB to static_cast<A*>(memmove(dst, (void*)src, sizeof(src))) since C++20?

Difference between array and pointer to string literal

Is casting `the address of a pointer to a struct` to `the address of a struct whos first member is a pointer to the struct` UB?

Does undefined behavior only concern an execution of program, or can it concern a program itself?

Can I "over-extend" an array by allocating more space to the enclosing struct?

Why is optimization forbidden if a C compiler cannot prove lack of UB?

Generating prefix bitmasks

Undefined behaviour in (X)HTML?

Is std::begin on an empty std::valarray undefined behavior?

Examples using reinterpret_cast that do not trigger UB

Why doesn't strict aliasing rule apply to int* and unsigned*?

default parameters in function call in C

Is decrement of bool variable defined in С?

strange behavior of scanf for short int

c scanf undefined-behavior

Can a function be marked noexcept if it takes a value type that may throw?