Re:Undefined behavior in C is a reading error
by a1369209993 on Thursday May 20, 2021 @10:02PM
(#27229728)
Actually, there's a even worse version:
Not even any dereferencing, just pointer arithmetic.
[ Parent
| on HN ]
Re:Undefined behavior in C is a reading error
by tom_mellior on Friday May 21, 2021 @03:49PM
(#27239036)
Could you post a complete example please and tell us which compiler optimizes out this check? Clang and GCC don't: https://gcc.godbolt.org/z/dbTadEcra