--- Comment #6 from Don <> 2011-10-21 05:05:58 PDT ---
Reduced test case:

void bug6733(int a, int b) pure nothrow { } 
void main() {
   int z;
   bug6733(z++, z++);

This is definitely a backend bug. What happens is, that since it's pure nothrow
and the result is unused, it's a no-side-effect call (OPcallns).
In the first optimisation step (optelem in cgelem.c), the call gets discarded,
and simply replaced with the parameter list (wrapped in an OPparam). If the
parameters had no side-effects, the whole thing would be discarded.
If there's only one with a side-effect, it's the only thing that's left. But if
there are TWO with side-effects, the OPparam remains.
The rest of the backend can't cope with a naked OPparam. Boom.
Solution would be to replace the OPparam with comma expressions.

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to