Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in undefined-behavior

Could deleting complete class type result in undefined behavior?

c++ undefined-behavior

Accessing a struct member from what is not the same struct type

Example of undefined behaviour involving the use of const_cast

Why output of array to pointer is not related

Unexpected bitshift behavior in C [duplicate]

Downcast to derived class in CRTP base class constructor: UB or not? [duplicate]

Does undefined behaviour retroactively mean that earlier visible side-effects aren't guaranteed?

Is this declaration UB?

Polymorphic update on struct fields in Rust

Is it undefined behaviour to use pointer after allocated memory?

Is accessing arrays out-of-bounds legal if what lies beyond those bounds is known in C? If not why not and how can this be worked around?

arrays c undefined-behavior

Preincrement vs postincrement in terms of sequence points

Function argument evaluation and side effects

Is it really well defined to check pointer alignment using the pointer's integer value?

What does the C++ standard says for algorithms when first <= last is not fulfilled?

Why does this std::weak_ptr apparently prevent freeing memory, and how can I detect this bug?

Can I assign a callable to a std::function with a different return type?

Is it OK to pass the address of an int for scanf("%x", ...)?

Is bitwise aritmetic on pointers defined behavior?