Issue 89493
Summary Hang Issue with LLVM: No Output or Error Message
Labels new issue
Assignees
Reporter iamanonymouscs
    # Description
I noticed that the GNU Compiler Collection (GCC13) compiles it quickly and generates the binary file successfully(https://godbolt.org/z/Kh9a7GM4n). However, when I attempt to compile the same code using LLVM, the compilation process seems to hang indefinitely(https://godbolt.org/z/r9xbTYz7G).
# Command
`clang-18 code.c`
# Code
```c
int main(void)
{
#line 4294967290
#warning msg
}
```
# Version
```sh
$ clang-18 -v
Ubuntu clang version 18.1.4 (++20240410110416+b6ebea7972cd-1~exp1~20240410230431.95)
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/13
Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/9
Selected GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/13
Candidate multilib: .;@m64
Selected multilib: .;@m64
```

# Output
After executing the command `clang++-18 code.c` in the command line, the cursor keeps creating new lines without any error messages or the generation of the compiled binary file.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to