https://bugs.llvm.org/show_bug.cgi?id=46795
Bug ID: 46795
Summary: isless( int, float ) not caught with -pedantic-errors
Product: clang
Version: 10.0
Hardware: Other
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: C
Assignee: unassignedclangb...@nondot.org
Reporter: tyde...@tybor.com
CC: blitzrak...@gmail.com, dgre...@apple.com,
erik.pilking...@gmail.com, llvm-bugs@lists.llvm.org,
richard-l...@metafoo.co.uk
Using clang 10.0.0 on ARM (and I believe Intel x86) with -std-c2x
-pedantic-errors is not flagging invalid code that uses any of the comparison
operators (isless, islessequal, isgreater, isgreaterequal, ...) along with an
argument that is not a real floating type.
The C standard, since C99, has the requirement: In the synopses in this
subclause [Comparison macros], real-floating indicates that the argument shall
be an expression of real floating type. There is not even a warning.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs