Search code examples
What does exempting (unsigned char *) data type from strict aliasing rule achieve?...


cpointerscastingstrict-aliasing

Read More
Is it possible to use a character array as a memory pool without violating strict aliasing?...


clanguage-lawyerstrict-aliasingmemory-pool

Read More
is aliasing a plain array to an `std::array` not UB...


c++language-lawyerundefined-behaviorstrict-aliasingstdarray

Read More
What is the strict aliasing rule?...


c++cundefined-behaviorstrict-aliasingtype-punning

Read More
Type casting char pointer to be of type struct pointer...


cundefined-behaviorstrict-aliasingc17

Read More
gcc: How to use __attribute((__may_alias__)) properly to avoid "derefencing type-punned pointer...


c++gcccompiler-warningsstrict-aliasingtype-punning

Read More
Correct interpretation of clause 6.5 Expressions in the draft C standard...


cstrict-aliasing

Read More
Is it well defined to cast to an identical layout with const members?...


c++constantslanguage-lawyerundefined-behaviorstrict-aliasing

Read More
Creating a possibly unaligned pointer, but the location of the undefined behavior is not clear...


calignmentstrict-aliasing

Read More
Is it allowed to use unions to modify parts of an object?...


cunionstrict-aliasingtype-punning

Read More
std::launder when there are two objects in the same memory location...


c++pointerslanguage-lawyerstrict-aliasingstdlaunder

Read More
How does GCC (not clang) make this optimization deciding that a store to one struct member couldn&#3...


c++gccclangcompiler-optimizationstrict-aliasing

Read More
Why compilers no longer optimize this UB with strict aliasing...


c++cgccclangstrict-aliasing

Read More
Flexible array member issues with alignment and strict aliasing...


cundefined-behaviormemory-alignmentstrict-aliasingflexible-array-member

Read More
Why does optimisation kill this function?...


c++coptimizationendiannessstrict-aliasing

Read More
Can a real floating-point type alias a complex floating-point type in C?...


clanguage-lawyerundefined-behaviorcomplex-numbersstrict-aliasing

Read More
Strict aliasing violation in C...


calignmentfftwstrict-aliasing

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


c++llvmstrict-aliasing

Read More
Breaking strict aliasing when reinterpret_cast-ing pointer to an object vs directly casting the refe...


c++20strict-aliasing

Read More
Memory Alignment warning with gcc...


cgccmemory-alignmentstrict-aliasingintrusive-containers

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


clanguage-lawyerunionsstrict-aliasingtype-punning

Read More
Strict aliasing between Complex numbers and real numbers in C...


cstrict-aliasing

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


c++clanguage-lawyerallocatorstrict-aliasing

Read More
Fix for dereferencing type-punned pointer will break strict-aliasing...


cstrict-aliasingtype-punning

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


caliasstrict-aliasingpointer-aliasing

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


c++language-lawyerstrict-aliasingc++23

Read More
Examples using reinterpret_cast that do not trigger UB...


c++undefined-behaviorreinterpret-caststrict-aliasing

Read More
In C++, is it valid to treat scalar members of a struct as if they comprised an array?...


c++pointersstructundefined-behaviorstrict-aliasing

Read More
Strict aliasing, CUdeviceptr, and cuMemAllocManaged...


c++pointerscudastrict-aliasing

Read More
GCC optimizing with -Os incorrectly assumes pointer to be NULL...


cgcccompiler-optimizationstrict-aliasing

Read More
BackNext