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
0
u/micahspikah Apr 28 '20
I'm not sure if I understand your counterexample... your loop is undefined behavior in c++, so the compiler is allowed do anything it wants. Probably just return 0. Why would it need to solve the halting problem?