I wonder why the compiler created buggy code. Anyway, I found easy workarounds, without reintroducing the warnings.