A Gaston County teacher is accused of having an inappropriate relationship with a student, according to prosecutors.