Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiler hangs forever when compiling simple structure #42

Open
GabrielRavier opened this issue Oct 20, 2021 · 1 comment
Open

Compiler hangs forever when compiling simple structure #42

GabrielRavier opened this issue Oct 20, 2021 · 1 comment

Comments

@GabrielRavier
Copy link

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).

@vonbrand
Copy link

The same problem is in several other versions. A git patch (renamed .txt) is attached.
0001-Fix-issue-42-for-53-54-56.60-62.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants