News for hackers. Stuff that matters.
Re:C++ Modules Might Be Dead-On-Arrival by drewgross on Monday January 28, 2019 @04:35PM (#19021312)
No, it's actually undecidable. C++ templated have been determined to be turing complete, which means that template instantiations can encode the halting problem. Determining whether a program compiles or not therefore requires solving the halting problem.

In practice, compilers work around this by limiting template instantiation depth.

There are no comments on this comment yet.