After some expected errors (missing \begin{document}, missing number treated as zero, missing $ inserted) the following code produces an infinite loop where LaTeX attempts to load the font ^^@^^@OT1+cmr, the font ^^@^^@^^@OT1+cmr, the font ^^@^^@^^@^^@OT1+cmr and so on until running out of grouping levels.
a
\count22
\par
\alpha
Changing \count22 to \count21 or \count23 makes the loop disappear. I'm quite puzzled.
\int_const:Nn \c_foo_int { foo }gives such a horrible loop, and\count22came from\c_minus_onewhich is set equal to\m@ne. – Bruno Le Floch Sep 07 '16 at 17:16\c_minus_oneshould be directly set to-1without relying on legacy code. – egreg Sep 07 '16 at 20:31\chardefa negative value so you have to use a\count– Joseph Wright Sep 08 '16 at 12:20\count22– egreg Sep 08 '16 at 12:51