In Baltimore 3 Q. 510 makes it clear that those who are baptized (the heretics that is), practices his religion as if it was the true Faith, and dies without the guilt of mortal sin on soul can be saved.
of course this assumes he is ignorant of the truth that the Catholic Church is the True Church, as stated in Q. 511.