https://bugs.llvm.org/show_bug.cgi?id=42295
Bug ID: 42295
Summary: _Static_assert(.1 == .1, ""); won't compile
Product: clang
Version: 8.0
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: C
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected], [email protected],
[email protected]
When compiling any of the following lines,
_Static_assert(.1 == .1, "");
_Static_assert(.2 > .1, "");
_Static_assert(.1 > .2, "");
Clang will throw an error: static_assert expression is not an integral constant
expression
But the above expression yields int values, so they should compile.
Test on GCC 7.3 passes those lines.
--
You are receiving this mail because:
You are on the CC list for the bug._______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs