In Spain both are still taught in the standard high-school curriculum.

Not everyone takes those classes of course, but Latin is one of the core optatives in the humanities path, it can be chosen in the university entrance exam as one of the core tests, and many students do pick it.

It's not really taught as a foreign language though, it is used to teach fundamental concepts in linguistic analysis and translation, and it can be a legitimately valuable foundation to have a strong general literacy across romance languages.

I'm not sure how common it is elsewhere, but Roman law also makes up a non-trivial fraction of the compulsory curriculum in the first years of studying law at university. Most of the concepts are still relevant, it's what all modern legal systems are founded on.

I remember that a good friend of mine somehow avoided studying maths for the last four years of high-school by choosing all the alternatives, which included both Latin and ancient Greek. He was and still is a fantastic programmer despite hating maths though, obsessed with Linux distros from early teens.

What's called "Roman law" in Europe derives from the Justinian Code, which was nominally a codification of but in many respects a radical reinterpretation of late roman law. Prior to the Justinian Code, and especially Scholastic era glosses, Roman law was arguably more like a very rigid style of common law; that is, requiring judges to hew closely to precedent rather than applying abstract legal principles.