Issue 143853
Summary C23 program compilation timeout
Labels
Assignees
Reporter 8ss-boop
    ```
#include <float.h>
#include <stdlib.h>
#include <stdatomic.h>
#include <complex.h>
#include <limits.h>
int main(void) {
    char buffer[50];
 double d_value = 3.1415926535;
    strfromd(buffer, sizeof(buffer), "%.5f", d_value);
    atomic_int counter = 42;
 atomic_fetch_add(&counter, 10);
    _BitInt(BITINT_MAXWIDTH) big_bitint = (_BitInt(BITINT_MAXWIDTH))1 << (BITINT_MAXWIDTH - 1);
    double complex z = 1.0 + 2.0*I;
    unsigned int u_val = UINT_WIDTH;
    return 0;
}
```

This program will timeout when using the option - sd=c2x on the latest trunk version of LLVM.

```
Killed - processing time exceeded
Program terminated with signal: SIGKILL
Compiler returned: 143
```
but can be compiled successfully  by GCC trunk

reproduce: 
https://godbolt.org/z/hPo4aEox8

_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to