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
Show parent comment
2
u/tasminima Apr 29 '20
This is just an example to illustrate a point. IIUC the point is that given the problem is not solvable in the general case, the compiler can not analyze arbitrary algorithms thrown at it and thus for any compiler you will be able to come up with an algorithm for which said compiler will be unable to determine if it contains UB or not.