earnol
earnol
Interesting issue. I also would like to see this feature request implemented.
Should we close it in the light of https://github.com/llvm/llvm-project/pull/96240?
The values displayed are correct, but the bitness itself might need to be corrected. However i might say the current message is better in a sense as it gives information...
Then what type message do you propose? I understand why it works out this way but still not fully clear on wanted position. The third case the store type is...
Is not it obvious that type '_BitInt(64)' is indeed 64 bits? For me is just an overkill. Right now it is: `/app/example.c:3:14: runtime error: left shift of 4 by 45...
You are right. There will be no diagnostics in this case, but it will make expression on line 12 redundant the exactly same way. The only difference it will be...
My understanding is there should be a consistent logic: 1. We report all situations when when expression consisting of literals is compile time are defined. Like `if (5 != 6)`...
> That check is inside an `if` statement predicated on `areSidesBinaryConstExpressions`, which requires both sides of a binary operator to be binary operators as well (+ some more), so the...
Yes. It is tricky. This example is also not a bug: ``` void f(int a, int b, bool c) { if (c == b > a) { /* ... */...
We can split this task in two: for C and for C++. In C we have no overloading operators. Also it is possible to apply this to situation only where...