Issue 143850
Summary C23 program compilation timeout
Labels new issue
Assignees
Reporter 8ss-boop
    ```c
#include <float.h>
#include <stdlib.h>
#include <time.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);
    time_t now = 1234567890;
    struct tm tm_data;
 struct tm* lt = localtime_r(&now, &tm_data);
    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 -std=c2x on the latest trunk version of llvm, but in GCC

```
Killed - processing time exceeded
Program terminated with signal: SIGKILL
Compiler returned: 143
```

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

Reply via email to