Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix infinite loop with self-referential global struct (#403)
The issue that this change solves can be repeated with the following program ```c // gcc -O0 -g -gdwarf-4 self_refer.c -o self_refer #include <stdio.h> struct foo { int num; struct foo *foo_next; }; static struct foo foo0 = { .num = 3, .foo_next = &foo0 }; int main() { printf("Num: %d\n", foo0.foo_next->num); } ```
- Loading branch information