Search code examples
What's a proper way of type-punning a float to an int and vice-versa?...


c++undefined-behaviorgcc-warningstrict-aliasingtype-punning

Read More
Standard compliant way of swapping bits of two objects in different types...


c++language-lawyerstrict-aliasing

Read More
Does a pointer to std::byte have the same aliasing relaxations as char*?...


c++c++17language-lawyerstrict-aliasingstd-byte

Read More
Is it undefined behavior to access the object representation of a pointer through a char*?...


clanguage-lawyerundefined-behaviorstrict-aliasing

Read More
Adversarial test against template generic STL vector pool...


c++vectormemory-managementstrict-aliasingtype-punning

Read More
Is casting strings from `wchar_t` to `char16_t` legal if encoding and width is the same?...


c++c++17language-lawyerundefined-behaviorstrict-aliasing

Read More
How can you repurpose an array of floats as an array of doubles without undefined behavior?...


c++undefined-behaviorstrict-aliasingtype-punning

Read More
Can you alias an array of T through a struct of T, similar to how std::complex<T>[N] can alias...


c++language-lawyerstrict-aliasingtype-punning

Read More
Why do compilers miss vectorization here?...


c++vectorizationcompiler-optimizationstrict-aliasingauto-vectorization

Read More
Is it possible to backport std::byte to C++14...


c++c++14language-lawyerstrict-aliasingstd-byte

Read More
reinterpret cast of a class template instantiation to another...


c++type-conversionstrict-aliasing

Read More
Is having a buffer of unsigned char and treating it as a pointer to T* a violation of strict aliasin...


cstrict-aliasing

Read More
gcc, strict-aliasing, and horror stories...


cgccstrict-aliasing

Read More
How does C++ strict aliasing work with arrays and dynamically allocated memory?...


c++memorystrict-aliasingtype-punning

Read More
Is strict aliasing still something to think about in C?...


cgccstrict-aliasing

Read More
Do FreeRTOS heap implementations violate C aliasing rules?...


cfreertosstrict-aliasing

Read More
std::atomic in a union with another character...


c++multithreadinglanguage-lawyerstrict-aliasingstdatomic

Read More
Are void** and int** compatible types?...


cstrict-aliasing

Read More
Strict aliasing rule with incompatible but same structs...


cpointersstructstrict-aliasing

Read More
Strict aliasing rule when storing and accessing an array of (pointers to) elements...


cstrict-aliasing

Read More
Aliasing through unions...


cunionsstrict-aliasingtype-punning

Read More
Is the code below well formed, in particular regarding aliasing rules?...


c++undefined-behaviorunionsstrict-aliasing

Read More
Rationale for non-virtual derived class not being pointer-interconvertible with its first base...


c++inheritancelanguage-lawyerreinterpret-caststrict-aliasing

Read More
UDP checksum calculation not working with newer version of gcc...


cstrict-aliasing

Read More
will casting around sockaddr_storage and sockaddr_in break strict aliasing...


c++clinuxsocketsstrict-aliasing

Read More
Is it legal to write to a `const T*` through a `T**`?...


c++pointersconstantslanguage-lawyerstrict-aliasing

Read More
Is this undefined behavior in C++?...


c++language-lawyerc++20strict-aliasing

Read More
Assigning a subsection of C-style array using a std::array& without violating "strict alias...


c++undefined-behaviorstrict-aliasingstdarray

Read More
Using restrict to express possible partial overlap...


coptimizationlanguage-lawyerstrict-aliasingrestrict-qualifier

Read More
Is it okay to type-pun allocated structs varying only in const-ness?...


cpointersc11strict-aliasing

Read More
BackNext