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.
> In practice, compilers limit template instantiation depth, so this is more of a theoretical problem than a practical one.