https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101640
Bug ID: 101640
Summary: d: Wrong evaluation order of binary expressions
Product: gcc
Version: 9.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: d
Assignee: ibuclaw at gdcproject dot org
Reporter: ibuclaw at gdcproject dot org
Target Milestone: ---
Because of the use of fold_build2, the evaluation order is ignored in the
following example.
---
int fun(ref int);
int test(int i)
{
return i + fun(i);
}
