Issue 12095 - Wrong code with -O -inline

https://d.puremagic.com/issues/show_bug.cgi?id=12095