[Bug fortran/85599] Prevent short-circuiting of logical expressions for non-pure functions
sgk at troutmask dot apl.washington.edu
gcc-bugzilla@gcc.gnu.org
Fri May 18 14:42:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85599
--- Comment #31 from Steve Kargl <sgk at troutmask dot apl.washington.edu> ---
On Thu, May 17, 2018 at 05:37:51AM +0000, janus at gcc dot gnu.org wrote:
>
> > The order of the evaluation of ping() and pong() is
> > not specified by the Fortran standard.
>
> 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.
More information about the Gcc-bugs
mailing list