He had announced a referendum asking citizens to vote on replacing the constitution — a measure that appeared to be illegal .