Then show me the compiler which tells the user that it removed this dead code. There is even an assignment removed, which violates all expectations