https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101964
Bug ID: 101964 Summary: using scanf makes compiler never terminate Product: gcc Version: 11.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: mateusmoraisdias3 at gmail dot com Target Milestone: --- OS: 5.13.8-1-MANJARO - x86_64 Description: using a simple call with `scanf` makes gcc never compile the source. Even a file (the bin output) is created, but once ran nothing happens, as it were stuck in a empty loop. Steps to reproduce: write a file with this content ```c #!/main.c #include <stdio.h> int main(){ int x; scanf("%d", x); return 0; } ``` type `gcc main.c -o main` to compile.