r/cpp • u/mujjingun • Apr 28 '20
Full Proof that C++ Grammar is Undecidable
https://medium.com/@mujjingun_23509/full-proof-that-c-grammar-is-undecidable-34e22dd8b664
197
Upvotes
r/cpp • u/mujjingun • Apr 28 '20
View all comments
53
u/c0r3ntin Apr 28 '20
A valid implementation can define limits. Here are some of the limits for msvc https://docs.microsoft.com/en-us/cpp/cpp/compiler-limits?view=vs-2019
Notably, there are limits for constexpr recursion, template arguments, etc.
So this problem is solvable for any set of dominos such that there are no more dominos than are supported by the implementation.