Undefined behavior

suggest change

Undefined Behavior

Reading or writing through a null pointer

Using an uninitialized local variable

Accessing an out-of-bounds index

Deleting a derived object via a pointer to a base class that doesnt have a virtual destructor.

Extending the std or posix Namespace

Accessing a dangling reference

Integer division by zero

No return statement for a function with a non-void return type

Invalid pointer arithmetic

Incorrect pairing of memory allocation and deallocation

Signed Integer Overflow

Shifting by an invalid number of positions

Modifying a const object

Value of an out-of-range enum

Multiple non-identical definitions the One Definition Rule

Overflow during conversion to or from floating point type

Returning from a noreturn function

Accessing an object as the wrong type

Modifying a string literal

Infinite template recursion

Access to nonexistent member through pointer to member

Destroying an object that has already been destroyed

Result of some reinterpret_cast conversions

Invalid derived-to-base conversion for pointers to members

Invalid base-to-derived static_cast

Calling Pure Virtual Members From Constructor Or Destructor

Floating point overflow

Function call through mismatched function pointer type

290Static cast from bogus void value

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents