A piece of code that causes LLVM Flang to generate NaN/Inf randomly

Yes, I’ve been using -ffast-math with great success also, and never had any issues. I started this thread here about it: Can one design coding rules to follow so that `-ffast-math` is safe?, and I link a document there about some rules to follow that make using -ffast-math “safe”.

1 Like