1 << 31 is not legal in C++ prior to C++14
Details
Details
- Reviewers
- None
Diff Detail
Diff Detail
Event Timeline
Comment Actions
Hi Eitan,
Thanks for looking at this, we should definitely get rid of UB wherever we can. There's a slight problem with the patch though, unfortunately.
Cheers.
Tim.
include/llvm-c/Core.h | ||
---|---|---|
162 | This one's apparently also undefined in C ("enumeration constant shall be an integer constant expression that has a value representable as an int"). |
This one's apparently also undefined in C ("enumeration constant shall be an integer constant expression that has a value representable as an int").