Opinion
On this appeal following a plea of guilty, we conclude that the appeal must be dismissed because appellant has not complied with Penal Code section 1237.5. 1 Even if section 1237.5 were not a bar, appellant’s contention is not reviewable after a guilty plea.
Facts and Contention
On December 6, 1983, appellant pleaded guilty to robbery, and admitted that in the commission of the offense, he personally used a firearm within *1150 the meaning of sections 12022.5 and 1203.06, subdivision (a)(1). Appellant waived a probation report and requested immediate sentencing. Probation was denied and appellant was ordered imprisoned in state prison for robbery for the midterm of three years, and for an additional two years for the use of a firearm. On January 23, 1984, appellant filed a notice of appeal.
Appellant contends that on December 6, 1983, after discussions with counsel, the court advised appellant that the “use” allegation would apply regardless of whether the gun was operable, so a motion to strike the allegation on that ground could not be made; and appellant then changed his plea and was sentenced. Appellant contends that the trial court should have entertained and granted a motion to strike the use allegation because the gun was not operable. 2
Section 1237.5
Appellant’s opening brief states that appellant filed a notice of appeal pursuant to rule 31(d) of the California Rules of Court, appealing the sentence portion only. The Attorney General raises no question about the propriety of the appeal. However, appellate jurisdiction cannot be conferred by consent or waiver. (See 6 Witkin, Cal. Procedure (2d ed. 1971) Appeal, §§ 30-32.)
Section 1237.5 and rule 31(d) of the California Rules of Court provide that an appeal from a judgment of conviction entered upon a plea of guilty shall not be operative without a certificate of probable cause for the appeal. The record does not show any certificate in this case.
Rule 31(d) also provides that the requirement of a certificate of probable cause is not applicable to an appeal from a judgment of conviction entered upon a plea of guilty if the appeal is based solely upon grounds occurring after entry of the plea, which do not challenge the validity of the plea. Appellant purports to come under that exception, by appealing only from the sentence.
Calling this an appeal from the sentence does not make it so. If the plea (robbery with use of a firearm) is correct, the sentence is correct, and appellant does not contend to the contrary. Appellant is actually alleging error as to a ruling or indication by the court before the plea. This he cannot do under section 1237.5 and rule 31(d) of the Rules of Court.
*1151
It could be argued that the admission of use of a firearm was
after
the plea of guilty to robbery (by a few seconds), and therefore an appeal regarding the validity or truth of that admission would be within the exception stated in rule 31(d). A similar contention regarding a motion to withdraw a guilty plea was rejected in
People
v.
Ribero
(1971)
Section 1237.5 applies to a judgment of conviction after a “plea of guilty or nolo contendere.” At issue here is the validity or truth of a “use” allegation. A technical, literal argument could be made that defendants do not “plead guilty” to enhancement allegations, they “admit” them. We can see no reason to draw such a fine distinction regarding the words used. Appellant’s attack goes to his guilt or innocence, the truth of the alleged enhancement, and would require consideration of evidence. Such issues have been removed from consideration by the plea and admission. (Cf.
People
v.
Pinon
(1979)
*1152 Scope of Review After Plea
Even if appellant had sought and obtained a certificate of probable cause under section 1237.5, the contention urged could not be reviewed on an appeal after a plea of guilty. A guilty plea admits all matters essential to the conviction, and the only matters reviewable on appeal are those based. on constitutional, jurisdictional, or other grounds going to the legality of the proceedings.
(People
v.
DeVaughn
(1977)
Thus, denial of a discovery motion cannot be reviewed on appeal after a plea of guilty, because the purpose of the motion relates to guilt or innocence, an issue which is removed by the guilty plea.
(People
v.
Castro
(1974)
Appellant’s ground of appeal goes to matters occurring before the plea and affecting the validity of the plea, but not constitutionality or jurisdiction. As noted, it would require consideration of evidence at the preliminary hearing and of proceedings before the plea. Aside from the procedural bar of section 1237.5, the limited scope of review after a guilty plea precludes review of appellant’s contention.
Disposition
Even if there were no bar to consideration of appellant’s contention, his contention is without merit. The trial court was correct. Operability of a firearm is not required by section 12022.5, which provides for enhancing a sentence for use of a firearm during commission of a felony.
(People
v.
Jackson
(1979)
*1153 Appellant’s ground of appeal goes to matters occurring before the plea and affecting the validity of the plea. The appeal is not solely from the sentence. A certificate of probable cause for the appeal is required, and has not been presented. Under those circumstances, rule 31(d) provides that the appeal shall not be operative.
The appeal is dismissed.
Feinerman, P. J., and Ashby, J., concurred.
Notes
Assigned by the Chairperson of the Judicial Council.
All statutory references are to the Penal Code unless otherwise indicated.
Appellant refers to testimony at his preliminary hearing as evidentiary support for his contention.
As noted, section 1237.5 applies to an appeal from a judgment of conviction upon a plea of guilty. A defendant can plead guilty to a main charge, and yet have a trial on an additional allegation, such as enhancement of sentence for “use” of a firearm
(People
v.
Nelums
(1982),
In
People
v.
Sumstine
(1984)
Courts have also held that operability of a firearm is not required by the following sections: (1) Section 4574—possession of a firearm while confined in jail
(People
v.
Talkington
(1983)
