News for hackers. Stuff that matters.
Re:Int a = 5; a = a++ + ++a; a =? (2011) by aidenn0 on Friday May 15, 2026 @12:23PM (#48150527)
That may be how you want C to be specified, but that's not how C is specified. The compiler is always allowed to assume that the input program is free of undefined behaviors.

C++ has an even more trivial example: To be a valid C++ program, all loops without side-effects must terminate. Thus determining if some C++ programs are valid would require solving the halting problem.

There are no comments on this comment yet.