Reassignment to reference doesn't cause error