Search Articles — Sudonull

Search Results

In this project

GCC folds x/x to 1 on division by zero

https://sudonull.com/gcc-folds-x-x-to-1-on-division-by-zero

Analysis of why GCC optimizes x/x to 1 even when x=0. UB, volatile, comparison with MSVC. For C++ developers: how to avoid and test.

Trending Now