Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in undefined-behavior

How do I convert an arbitrary double to an integer while avoiding undefined behavior?

reinterpret_cast, char*, and undefined behavior

Is infinite loop still undefined behavior in C++ if it calls shared library?

How can I avoid wasteful copying of keys in a B-tree based STL-like map?

Function parameters evaluation order: is it UB if we pass reference?

Why does unsigned char have different default initialization behaviour than other data types?

Accessing same-type inactive member in unions

Is a program that never terminates a valid C++ program?

Does 'a[i] = i;' always result in well defined behaviour?

c++ undefined-behavior

i = i++; is undefined. Is i = foo(i++) also undefined?

c++ undefined-behavior

Can "sizeof(arr[0])" lead to undefined behavior?

Why exactly is calling the destructor for the second time undefined behavior in C++?

Why is the value of i == 0 in this C++ code? [duplicate]

c++ undefined-behavior

Why doesn't deleting my pointer delete my pointer?

Is it legal to have a pointer to a reserved vector element? [duplicate]

Is UB in unevaluated context (e.g. requires-expressions) still UB?

Defining Undefined Behavior

c++ c undefined-behavior

Can initializing expression use the variable itself?

Can different GCC dialects be linked together?

Does swap() cause undefined behaviour?