Issue 54738
Summary Clang on Windows: diagnose undefined behavior: the argument shall be an _expression_ of real floating type
Labels new issue
Assignees
Reporter pmor13
    Sample code containing UB:
```
#include <math.h>
void f(void)
{
    fpclassify(0);
}
```
Clang on Linux diagnoses UB:
```
$ clang t0.c -std=c11 -pedantic -Wall -Wextra -c
error: floating point classification requires argument of floating point type (passed in 'int')
```
Clang on Windows doesn't:
```
# 13.0.0
$ clang.exe t0.c -std=c11 -pedantic -Wall -Wextra -c
<nothing>
```
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to