Fixed bug, which crashed compiler when compiled with `-O2` and `-O3`.