Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in undefined-behavior

Code with undefined behavior in C#

c# c++ undefined-behavior

Is std::memcpy between different trivially copyable types undefined behavior?

In C99, is f()+g() undefined or merely unspecified?

When is it valid to access a pointer to a "dead" object?

The behaviour of floating point division by zero

Does initialization entail lvalue-to-rvalue conversion? Is `int x = x;` UB?

Why would code explicitly call a static method via a null pointer?

Does a[a[0]] = 1 produce undefined behavior?

Why is a = (a+b) - (b=a) a bad choice for swapping two integers?

Is ++x %= 10 well-defined in C++?

Signed overflow in C++ and undefined behaviour (UB)

c++ undefined-behavior

Why is this an undefined behavior?

c++ c undefined-behavior

Is accessing a global array outside its bound undefined behavior?

c undefined-behavior

Has C++ standard changed with respect to the use of indeterminate values and undefined behavior in C++14?

In C++, does initializing a global variable with itself have undefined behaviour?

Why can't the C compiler optimize changing the value of a const pointer assuming that two pointers to the same variable would be illegal/UB?

A C++ implementation that detects undefined behavior?

c++ undefined-behavior

Multithreading program stuck in optimized mode but runs normally in -O0

Is copying 2D arrays with "memcpy" technically undefined behaviour?

What are the common undefined/unspecified behavior for C that you run into? [closed]