StackOverflow Questions for Tag: undefined-behavior

just Impartial
just Impartial

Reputation: 99

Is immediately initializing a variable important in C++

Score: 2

Views: 1000

Answers: 4

Read More
Badasahog
Badasahog

Reputation: 763

Is assigning to a restrict qualified pointer always undefined behavior?

Score: 3

Views: 97

Answers: 3

Read More
Mes
Mes

Reputation: 347

Is dereference null pointer UB in C++20?

Score: 7

Views: 747

Answers: 1

Read More
cbhattac
cbhattac

Reputation: 273

Is my understanding about undefined behavior in the following code using reinterpret_cast correct?

Score: -1

Views: 86

Answers: 0

Read More
CPlus
CPlus

Reputation: 4848

Accessing a single value in an array of union/struct with an array member

Score: 6

Views: 203

Answers: 4

Read More
YiFei
YiFei

Reputation: 1856

SIMD load across memory boundary doesn't cause segfault?

Score: 2

Views: 118

Answers: 4

Read More
Badasahog
Badasahog

Reputation: 763

do sequential non volatile loads guarantee correctness when used in the vicinity of memory remapping?

Score: 2

Views: 75

Answers: 2

Read More
Erhannis
Erhannis

Reputation: 4464

Heapless Box in Rust

Score: 0

Views: 119

Answers: 1

Read More
greenlagoon
greenlagoon

Reputation: 121

memmove overwriting objects and their lifetimes

Score: 1

Views: 51

Answers: 1

Read More
Gaith
Gaith

Reputation: 828

Compiler behavior when evaluating sub-expressions

Score: -1

Views: 79

Answers: 2

Read More
Ichimonji_bleach
Ichimonji_bleach

Reputation: 17

Type punning with char type in C/C++

Score: -1

Views: 115

Answers: 1

Read More
Alex O
Alex O

Reputation: 1876

Understanding implicit lifetime creation and aliasing in C++

Score: 3

Views: 167

Answers: 2

Read More
Konvt
Konvt

Reputation: 125

Is placement new in an union UB for SOO?

Score: -2

Views: 97

Answers: 1

Read More
Joseph Garvin
Joseph Garvin

Reputation: 21974

Is it possible to have a 32-bit pointer on x86-64 without undefined behavior?

Score: 5

Views: 258

Answers: 3

Read More
Gabriel Staples
Gabriel Staples

Reputation: 53055

Googletest (gtest) / googlemock (gmock): Why is "interleav[ing] `EXPECT_CALL()`s and calls to the mock functions" undefined behavior?

Score: 0

Views: 478

Answers: 1

Read More
Maximilian Matthé
Maximilian Matthé

Reputation: 338

Undefined behaviour? Local vs global scope and pointer to temporary array

Score: 0

Views: 93

Answers: 1

Read More
greenlagoon
greenlagoon

Reputation: 121

Unwanted implicit object creation in an array of std::byte VS char

Score: -1

Views: 132

Answers: 1

Read More
anthonyvd
anthonyvd

Reputation: 7590

Why is unsigned integer overflow defined behavior but signed integer overflow isn't?

Score: 281

Views: 75677

Answers: 9

Read More
Konvt
Konvt

Reputation: 125

Can a function be marked noexcept if it takes a value type that may throw?

Score: 4

Views: 132

Answers: 1

Read More
Richard Steidl
Richard Steidl

Reputation: 21

Flatbuffers VectorIterator::operator- undefined behavior

Score: 2

Views: 46

Answers: 0

Read More
PreviousPage 1Next