AFAIK, it's not illegal, its just implementation defined.