StackOverflow Questions for Tag: undefined-behavior

Alan
Alan

Reputation: 1

Undefined Behavior when using Comma Operator in C++

Score: 4

Views: 202

Answers: 1

Read More
FenrirBots
FenrirBots

Reputation: 21

What happens if you call free() on non allocated memory returned by a function

Score: 1

Views: 112

Answers: 1

Read More
sharptooth
sharptooth

Reputation: 170539

How does a C++ compiler manage to emit completely pointless code?

Score: 0

Views: 307

Answers: 2

Read More
greenlagoon
greenlagoon

Reputation: 121

Interpreting part of an array as an object by casting a pointer to an array element

Score: 3

Views: 183

Answers: 2

Read More
IAmPropper
IAmPropper

Reputation: 43

UB with reinterpret_cast

Score: 0

Views: 100

Answers: 0

Read More
Babur Makhmudov
Babur Makhmudov

Reputation: 532

UB or not UB, concurrently operating on static memory in Rust

Score: 0

Views: 80

Answers: 1

Read More
leemes
leemes

Reputation: 45715

Can macro-dependant access specifiers in a class definition result in undefined behavior?

Score: 2

Views: 834

Answers: 2

Read More
glglgl
glglgl

Reputation: 91119

"Undefined behaviour" always undefined?

Score: 3

Views: 127

Answers: 3

Read More
faressoft
faressoft

Reputation: 19651

Does Undefined Behavior depend on the compiler in c++?

Score: 0

Views: 137

Answers: 4

Read More
7Zon2
7Zon2

Reputation: 1

Why i cannot initialize a reference to derived class without construction in base class?

Score: 0

Views: 97

Answers: 0

Read More
Artyom Gevorgyan
Artyom Gevorgyan

Reputation: 185

Is dividing an integer with value 0x80000000 an UB?

Score: 0

Views: 102

Answers: 1

Read More
greenlagoon
greenlagoon

Reputation: 121

How can I get the memory distance in bytes between any two objects (if this measurement exists in a meaningful way)?

Score: 3

Views: 145

Answers: 1

Read More
Gokulanandan S
Gokulanandan S

Reputation: 55

Memory Lifetime within a process

Score: 4

Views: 107

Answers: 2

Read More
lol lol
lol lol

Reputation: 491

Is shifting 0 to the left considered undefined behavior in C?

Score: 3

Views: 274

Answers: 1

Read More
Hamza Hajeir
Hamza Hajeir

Reputation: 416

Can I assign a callable to a std::function with a different return type?

Score: 18

Views: 924

Answers: 2

Read More
SaintAnti
SaintAnti

Reputation: 41

Will gcc skip this check for signed integer overflow?

Score: 3

Views: 967

Answers: 1

Read More
Oersted
Oersted

Reputation: 2734

std::memcpy from an object to another one of same type through an intermediate array of bytes

Score: 0

Views: 83

Answers: 0

Read More
Ardhendu
Ardhendu

Reputation: 1

How did "printing an array" alter the values of another array?

Score: 0

Views: 99

Answers: 0

Read More
Badasahog
Badasahog

Reputation: 763

Is there a sequence point between the evaluation of a function's arguments and the assignment of the return value of a function to another object?

Score: 3

Views: 106

Answers: 2

Read More
ereOn
ereOn

Reputation: 55786

Where is the undefined behavior when using const_cast<>?

Score: 8

Views: 1295

Answers: 2

Read More
PreviousPage 2Next