News for hackers. Stuff that matters.
Re:Parsing C++ is literally undecidable (2013) by einpoklum on Friday October 04, 2019 @09:22AM (#21157371)
Key point:

> In practice, compilers limit template instantiation depth, so this is more of a theoretical problem than a practical one.

Re:Parsing C++ is literally undecidable (2013) by seanmcdirmid on Friday October 04, 2019 @09:56AM (#21157706)
Magic numbers to limit undecidability are incredibly fragile. You think you have all the cases covered and another comes up, or the numbers need to be enlarged because of some reasonable code being rejected.

Better to have this problem in the parser than the type checker, at least.

Re:Parsing C++ is literally undecidable (2013) by einpoklum on Sunday October 06, 2019 @05:32PM (#21175307)
There's no assumption that all the cases are covered up. Only some. The point is - in practice, don't try to go in too deep with templates.