Search code examples
In C++, does initializing a global variable with itself have undefined behaviour?...

c++language-lawyerundefined-behavior

Read More
Undefined behavior with pointer casts in C99 and MISRA C:2012...

cpointersundefined-behaviorc99misra

Read More
What is erroneous behavior? How is it different from undefined behavior?...

c++undefined-behaviorc++26erroneous-behavior

Read More
Infinite loop vs infinite recursion. Are both undefined?...

c++loopsrecursionlanguage-lawyerundefined-behavior

Read More
Benefit of inifinite loops without side effects in C++ being undefined behavior compared to C?...

c++cinfinite-loopcompiler-optimizationundefined-behavior

Read More
Boost ASIO "Bad address" error when passing unique_ptr to completion handler...

c++boostundefined-behaviorunique-ptrasio

Read More
Incorrect implementation of calloc() introduces division by zero and how to detect it via testing?...

cunit-testingtestingmallocundefined-behavior

Read More
Are data races in assembly dangerous?...

assemblyconcurrencyx86armundefined-behavior

Read More
Reading from pointers with "no provenance" using asm consdered safe?...

rustundefined-behavior

Read More
In practice, why would different compilers compute different values of int x = ++i + ++i;?...

c++undefined-behavior

Read More
Why is casting a union member pointer to a union pointer not UB as they can have different size?...

c++castinglanguage-lawyerunionundefined-behavior

Read More
Undefined behavior with unions...

ctypesundefined-behaviorunionsmemory-alignment

Read More
Is it allowed to pass "this" of derived class to constructor of base class?...

c++inheritanceconstructorundefined-behaviorvirtual-functions

Read More
Initialize a structure pointer to NULL, then try to change its members...

cpointersstructundefined-behavior

Read More
Returning a struct containing array in C...

arrayscstructundefined-behavior

Read More
Optimizing away a "while(1);" in C++0x...

c++c++11language-lawyerinfinite-loopundefined-behavior

Read More
Is 'while(1);' undefined behavior in C?...

clanguage-lawyerinfinite-loopundefined-behavior

Read More
Is passing an absent assumed-shape array for an optional argument of another procedure allowed?...

fortranstandardsundefined-behavioroptional-parameterssanitizer

Read More
Why need list argument in list splice func cpp...

c++listlinked-listundefined-behaviorsplice

Read More
Is this use of va_copy undefined behaviour?...

cundefined-behaviorvariadic-functionsc99ansi-c

Read More
Are multidimensional array accesses sequenced?...

arrayscmultidimensional-arrayundefined-behaviororder-of-execution

Read More
Putting 'noexcept' on possible UB...

c++functionundefined-behaviornoexcept

Read More
C free memory on stack...

cfreeundefined-behavior

Read More
Why is f(i = -1, i = -1) undefined behavior?...

c++language-lawyerundefined-behaviorexpression-evaluation

Read More
Issue with printing the correct size of a string in C...

arraysccharundefined-behavior

Read More
Is it legal to `reinterperet_cast` to the child of a non-virtual object?...

c++gccvisual-c++undefined-behavior

Read More
Concept vs. Typename Parameter in Template Template...

c++templatesstandardsundefined-behaviorc++23

Read More
Storing Zero-Sized type instance into a null pointer...

pointersrustundefined-behaviorunsafe

Read More
Does assignment of the same value to a const variable cause UB in C++?...

c++constantsundefined-behavior

Read More
Is the behaviour of std::chrono::round on out-of-range values as intended?...

c++c++17roundingundefined-behaviorc++-chrono

Read More
BackNext