Questions
Linux
Laravel
Mysql
Ubuntu
Git
Menu
HTML
CSS
JAVASCRIPT
SQL
PYTHON
PHP
BOOTSTRAP
JAVA
JQUERY
R
React
Kotlin
×
Linux
Laravel
Mysql
Ubuntu
Git
New posts in undefined-behavior
Compound literal is created once for a given scope
Nov 16, 2025
c
language-lawyer
undefined-behavior
compound-literals
Is it legal to cast a repr(C) struct pointer to pointer to its first field?
Nov 15, 2025
rust
language-lawyer
undefined-behavior
Any reason why 0.0/0.0 makes negative nan in C++?
Nov 15, 2025
c++
nan
undefined-behavior
Is passing pointer to an array as pointer to pointer UB in C?
Nov 09, 2025
c
pointers
language-lawyer
undefined-behavior
implicit-conversion
Is it undefined behavior to access an array out of bounds if I know what data is at the accessed adress?
Nov 07, 2025
c++
stack
undefined-behavior
Is "*this = {}" valid inside a member function for reset in CPP
Nov 02, 2025
c++
performance
coding-style
undefined-behavior
Why doesn't -fsanitize=undefined pick up on (what I think is) UB?
Nov 01, 2025
c++
g++
undefined-behavior
sanitizer
Understanding Virtual Functions when Deriving from Multiple Classes
Nov 01, 2025
c++
multiple-inheritance
undefined-behavior
virtual-functions
reinterpret-cast
Why is integer overflow undefined behavior only for signed integers, and not for unsigned integers?
Oct 31, 2025
c++
undefined-behavior
integer-overflow
Sequence point && operator
Oct 29, 2025
c++
undefined-behavior
c++03
operator-precedence
sequence-points
Understanding implicit lifetime creation and aliasing in C++
Oct 29, 2025
c++
clang
language-lawyer
undefined-behavior
type-punning
Can you overwrite the memory of a union, if no members are active?
Oct 28, 2025
c++
language-lawyer
undefined-behavior
unions
c++23
Why does the clang sanitizer think this left shift of an unsigned number is undefined?
Oct 28, 2025
c++
undefined-behavior
sanitizer
Is it defined behaviour to assign to function call in or in if (C++17)
Oct 27, 2025
c++
c++17
undefined-behavior
why would the optimization ignore the if statement when function has warning [-Wreturn-type]?
Oct 27, 2025
c++
assembly
optimization
compiler-optimization
undefined-behavior
How does clang manage to compile this code with undefined behavior into this machine code?
Oct 27, 2025
c++
compilation
clang
compiler-optimization
undefined-behavior
Is pointer arithmetic still well defined after casting with alignment violation?
Oct 24, 2025
c
undefined-behavior
memory-alignment
c11
pointer-arithmetic
If I decrement `std::size_t(0)` is that guaranteed to be equal to `std::size_t(-1)`?
Oct 26, 2025
c++
undefined-behavior
integer-overflow
unsigned-integer
Is a program where undefined behavior (UB) is conditional on implementation leeway a program with unconditional UB?
Oct 26, 2025
c++
language-lawyer
undefined-behavior
Older Entries »