Compiler hangs forever when compiling simple structure
Author: GabrielRavierCreated Oct 20, 2021Updated Sep 21, 2024
Trying to compile this code:
struct node
{
int count;
struct node *left;
} words[14];Makes cwj (at least the one from chapter 62) hang forever. This seems to be caused by cgglobsym having an inner loop accidentally use the same i for looping, overwriting the value of the one intended for the outer loop (and since the loop bound for the inner loop is lower than the outer loop's bound, i will never reach the outer loop's bound).
Source: DoctorWkt/acwj