12 All who sin apart from the law will also perish apart from the law, and all who sin under the law will be judged by the law.

Read Romans 2:12 Using Other Translations

For as many as have sinned without law shall also perish without law: and as many as have sinned in the law shall be judged by the law;
For all who have sinned without the law will also perish without the law, and all who have sinned under the law will be judged by the law.
When the Gentiles sin, they will be destroyed, even though they never had God’s written law. And the Jews, who do have God’s law, will be judged by that law when they fail to obey it.