This is undefined behavior according to the standard. We can just use the built in means of retrieving a quiet NaN.