[Bug fortran/85599] Prevent short-circuiting of logical expressions for non-pure functions

janus at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri May 18 18:23:00 GMT 2018


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85599

--- Comment #32 from janus at gcc dot gnu.org ---
(In reply to Steve Kargl from comment #31)
> > This PR is not about reordering, but about short-circuiting.
> 
> AFAICT this PR is about a function with side-effects,
> and re-ordering can have an potentially undesirable
> result.

Yah, I guess you can dream up all kinds of possible issues with non-pure
functions, but that is really beyond the scope of this PR. I feel like I have
already opened up a barrel large enough, and have gotten sufficient flak for
that. I'm really not interested in taking this discussion any further. If you
are, please open a new PR for that.


More information about the Gcc-bugs mailing list