It is illegal in Australia, because suicide is classed as homicide. In theory, it is illegal to attempt suicide. It gives authorities the right to remand you to the protection of a psychiatric hospital. If, however, you live in a country that allows euthanasia and you are terminally ill, I don't see why it would be a problem. Some countries in Europe, maybe???