StackOverflow Questions for Tag: strict-aliasing

Pidhorskyi
Pidhorskyi

Reputation: 1594

Deserializing POD data types from raw memory block without memcpy

Score: -1

Views: 55

Answers: 0

Read More
Oersted
Oersted

Reputation: 2734

Need for an intermediate struct in a type punning example with `std::bit_cast`

Score: 3

Views: 99

Answers: 1

Read More
rsp1984
rsp1984

Reputation: 1947

C/C++ strict aliasing, object lifetime and modern compilers

Score: 8

Views: 789

Answers: 4

Read More
Aditya Kurrodu
Aditya Kurrodu

Reputation: 481

Strict aliasing violation in C

Score: 1

Views: 62

Answers: 1

Read More
Bikineev
Bikineev

Reputation: 1777

clang/gcc assume that a pointer into a member may alias another member of a different type?

Score: 3

Views: 127

Answers: 1

Read More
Wololo
Wololo

Reputation: 1295

Breaking strict aliasing when reinterpret_cast-ing pointer to an object vs directly casting the reference of the same object

Score: 0

Views: 62

Answers: 1

Read More
Daniel
Daniel

Reputation: 341

Memory Alignment warning with gcc

Score: 3

Views: 1085

Answers: 3

Read More
ThomasP66
ThomasP66

Reputation: 13

What are the prohibitions against certain kinds of aliasing through unions?

Score: 1

Views: 99

Answers: 2

Read More
Aditya Kurrodu
Aditya Kurrodu

Reputation: 481

Strict aliasing between Complex numbers and real numbers in C

Score: 0

Views: 116

Answers: 3

Read More
humble_student
humble_student

Reputation: 21

What is the equivalent of GCC's fno-strict-aliasing flag for ICC, the Intel Compiler?

Score: 2

Views: 1362

Answers: 2

Read More
Adam Sho
Adam Sho

Reputation: 29

Can the addresses of two distinct variables of different types compare equal in C?

Score: 2

Views: 154

Answers: 4

Read More
MWB
MWB

Reputation: 12597

Do C and C++ differ on the legality of aligning pointers at runtime?

Score: 6

Views: 380

Answers: 2

Read More
Steve Siegel
Steve Siegel

Reputation: 692

Strict Aliasing and Unions in C

Score: 4

Views: 178

Answers: 2

Read More
Steve Siegel
Steve Siegel

Reputation: 692

Clarification of the effective type restriction in C

Score: 13

Views: 943

Answers: 3

Read More
BlankFrank
BlankFrank

Reputation: 573

Fix for dereferencing type-punned pointer will break strict-aliasing

Score: 57

Views: 97687

Answers: 8

Read More
jotik
jotik

Reputation: 17920

Using std::memmove to work around strict aliasing?

Score: 2

Views: 309

Answers: 3

Read More
akyoshid
akyoshid

Reputation: 3

Are there any strict aliasing rule violations that are not detected by -Wstrict-aliasing?

Score: 0

Views: 127

Answers: 1

Read More
user3188445
user3188445

Reputation: 4784

Is type-punning pointer-interconvertible types exempt from strict aliasing in C++23?

Score: 1

Views: 185

Answers: 1

Read More
wimalopaan
wimalopaan

Reputation: 5472

Examples using reinterpret_cast that do not trigger UB

Score: 26

Views: 2951

Answers: 3

Read More
Peter Zajac
Peter Zajac

Reputation: 31

C++ pointer-interconvertibility/strict-aliasing rules between class objects with array members

Score: 3

Views: 99

Answers: 0

Read More
PreviousPage 1Next