Not getting into what it legal or not, but here is an example where -ffast-math would change the results.
Suppose you want to calculate a^4 and...