Comment Comment by gfaster That it is Undefined Behavior for a loop with a non-constant conditional and that doesn't cause side effects in its body to not terminate.For example, you can use this make the compiler "prove" the Collatz Conjecture:https://gcc.godbolt.org/#g:!((g:!((g:!((h:codeEditor,i:(file... parent gfaster 11 months ago
For example, you can use this make the compiler "prove" the Collatz Conjecture:
https://gcc.godbolt.org/#g:!((g:!((g:!((h:codeEditor,i:(file...