Andrew Seay was indicted and pled guilty to possession of a firearm while being an unlawful user of, or addicted to, a controlled substance, in violation of 18 U.S.C. §§ 922(g)(3) and 924(a)(2), and was sentenced by the district court 1 to nine months imprisonment. Seay filed this timely appeal, arguing that the government unnecessarily delayed his indictment and that his conviction is unconstitutional under the Second Amendment. The government moved to dismiss Seay’s appeal on the grounds that Seay waived his appeal rights by pleading guilty. We grant the government’s motion in part, deny it in part, and affirm Seay’s conviction.
I.
In March 2008, Seay was on probation as a result of a South Dakota conviction for distribution and possession with intent to distribute marijuana. On March 7, 2008, state law enforcement officers conducted a probation search of Seay’s vehicle and residence, during which they found marijuana in Seay’s vehicle and residence, and four firearms — two pistols and two shotguns — in Seay’s residence. Seay’s roommate told the officers that he and Seay used the shotguns for hunting. Seay denied that the pistols belonged to him. Seay was arrested on state charges based on the items found in the search. Following his arrest, Seay provided a urine sample that tested positive for marijuana.
On November 4, 2008, Seay was indicted by a federal grand jury for possessing a firearm while being an unlawful user of, or addicted to, a controlled substance, in violation of 18 U.S.C. §§ 922(g)(3) and 924(a)(2). Seay pled not guilty and moved to dismiss the indictment, arguing that the government unnecessarily delayed in presenting the case to the grand jury and that the indictment violated his Second Amendment rights. The magistrate judge
2
is
*921
sued a Report and Recommendation (“R
&
R”), recommending that Seay’s motion be denied. The district court never adopted the R
&
R, however, as Seay pled guilty on April 8, 2008. Seay’s plea agreement contained a standard waiver of defenses and appeal rights, stating that Seay “waives all defenses and his right to appeal any non-jurisdictional issues.” (Appellant’s
Following the imposition of sentence, Seay filed a notice of appeal. The government moved to dismiss the appeal based on the appeal waiver in Seay’s plea agreement. After considering briefs from both parties, we elected to decide the waiver issue along with the merits of Seay’s appeal, which is now before us.
II.
Before addressing the merits of Seay’s appeal, we must first decide whether he has waived the right to bring this appeal at all.
As a general rule, “[a] defendant’s knowing and intelligent guilty plea forecloses ‘independent claims relating to the deprivation of constitutional rights that occurred prior to the entry of the guilty plea.’ ” United States v. Vaughan,13 F.3d 1186 , 1187 (8th Cir.1994) (quoting Tollett v. Henderson,411 U.S. 258 , 267,93 S.Ct. 1602 ,36 L.Ed.2d 235 (1973)). There are exceptions to this rule, however; a person may, despite a valid guilty plea, pursue a certain type of claim that has been variously defined as a claim that attacks “the State’s power to bring any indictment at all,” United States v. Broce,488 U.S. 563 , 575,109 S.Ct. 757 ,102 L.Ed.2d 927 (1989), that protects a defendant’s “right not to be haled into court,” Blackledge v. Perry,417 U.S. 21 , 30,94 S.Ct. 2098 , 40 L.Ed'.2d 628 (1974), and that “the charge is one which the State may not constitutionally prosecute,” Menna v. New York,423 U.S. 61 , 62 n. 2,96 S.Ct. 241 ,46 L.Ed.2d 195 (1975) (per curiam). We have often interpreted these Supreme Court cases to foreclose claims that raise “nonjurisdictional” issues and to permit only claims that question the trial court’s “jurisdiction.”
Weisberg v. Minnesota,
First, Seay argues that the government improperly delayed seeking an indictment in his case, and that the district court should have dismissed the indictment under Federal Rule of Criminal Procedure 48. Rule 48 allows a court to “dismiss an indictment ... if unnecessary delay occurs in: (1) presenting a charge to a grand jury; (2) filing an information against a defendant; or (3) bringing a defendant to trial.” Fed.R.Crim.P. 48(b). The essence of Seay’s argument — that the government waited too long to prosecute him — is similar to the argument raised in
Cox v. Lockhart,
Second, Seay argues that 18 U.S.C. § 922(g)(3) is facially unconstitutional following the Supreme Court’s decision in
District of Columbia v. Heller,
The government directs us to
United States v. Fox,
Seay, however, does not argue that his indictment was defective, as did the defendant in
Cotton.
Instead, he alleges that the indictment should never have been brought at all because the government “may not constitutionally prosecute” him.
See Menna,
III.
Having held that Seay’s constitutional argument survives his guilty plea, we now turn to the merits of his claim. Seay argues that § 922(g)(3)’s ban on firearm possession is facially unconstitutional following the Supreme Court’s
Heller
decision, which he claims established the right to keep and bear arms as a fundamental constitutional right. We review the constitutionality of the statute de novo.
4
See United States v. Rodriguez,
The Second Amendment provides: “A well regulated Militia, being necessary to the security of a free State, the right of the people to keep and bear Arms, shall not be infringed.” Prior to 2009, the Supreme Court had not examined that right in depth. This changed with the Court’s landmark decision in
Heller,
which established that the Second Amendment right is an individual right unconnected to service in the militia, and struck down the District of Columbia’s ban on handgun possession.
See
Like most rights, the right secured by the Second Amendment is not unlimited.... Although we do not undertake *924 an exhaustive historical analysis today of the full scope of the Second Amendment, nothing in our opinion should be taken to cast doubt on longstanding prohibitions on the possession of firearms by felons and the mentally ill, or laws forbidding the carrying of firearms in sensitive places such as schools and government buildings, or laws imposing conditions and qualifications on the commercial sale of arms.
Id. at 2816-17. The Court noted that its list of presumptively valid laws “does not purport to be exhaustive.” Id. at 2817 n. 26.
Since
Heller,
the Supreme Court determined the inevitable question of whether the Second Amendment is applicable to the states through the Fourteenth Amendment.
See McDonald v. City of Chicago,
— U.S. -,
Following
Heller,
many defendants have argued that 18 U.S.C. § 922(g), or some subsection thereof, violates the Second Amendment. To date, none have succeeded. For example, we have upheld the constitutionality of § 922(g)(1) (felon in possession).
See United States v. Irish,
Turning to the subsection at issue here, § 922(g)(3) makes it unlawful for anyone “who is an unlawful user of or addicted to
*925
any controlled substance” to possess a firearm. Prior to
Heller,
we upheld the constitutionality of § 922(g)(3), albeit not specifically under the Second Amendment.
See United States v. Letts,
Nothing in Seay’s argument convinces us that we should depart company from
every
other court to examine § 922(g)(3) following
Heller.
Further, § 922(g)(3) has the same historical pedigree as other portions of § 922(g) which are repeatedly upheld by numerous courts since
Heller. See
Gun Control Act of 1968, Pub.L. No. 90-618, 82 Stat. 1213. Moreover, in passing § 922(g)(3), Congress expressed its intention to “keep firearms out of the possession of drug abusers, a dangerous class of individuals.”
United States v. Cheeseman,
*926 IV.
For the foregoing reasons, we grant the government’s motion in part, deny it in part, and affirm Seay’s conviction.
Notes
. The Honorable Lawrence L. Piersol, United States District Judge for the District of South Dakota.
. The Honorable John E. Simko, United States Magistrate Judge for the District of South Dakota.
. As-applied challenges to the constitutionality of a statute, however, are not jurisdictional.
See United States v. Morgan,
. Although Seay failed to object to the magistrate judge's R & R, this does not affect our standard of review.
See United States v. James,
. Although
Patterson
is a
pre-Heller
case, at the time
Patterson
was decided the Fifth Circuit had already held, in a decision very similar to
Heller,
that the Second Amendment right to keep and bear arms is an individual right unrelated to militia service.
See United States v. Emerson,
