No.
The loss of voting priveleges is not written into the statutes for larceny, drug dealing or even murder.
They’re incorporated into separate state statutes that pretty much cover ALL felonies, and quite a few misdemeanors now, IIRC. Yes, they are there at the time the felonies are committed and as they say, “Ignorance of the law is no excuse.”
But, those statutes are only in effect until they’re rescinded/removed, and no statute is ever permanent and beyond change. With the exception of The States apportionment of US Senators, ANYTHING can be changed. The fact that many states account for a reinstatement of voting and gun rights says there’s room to debate this.
Theyre incorporated into separate state statutes...
They're not in the statutes, but they are??? They're public record, accessable to all. Trying to claim that because they're written elsewhere, they shouldn't apply doesn't work. This information is available to all citizens.
By chance, are you a felon? Or, perhaps, a trial lawyer?