https://github.com/rui314/9cc/blob/master/parse.c#L846 Although you use the stack of breaks, in this context, you should use the stack of the stack of continues. Fortunately, these get the same result.