I’m getting a couple of asserts, one from the assert in Sema::ActOnNumericConstant at line 1897, the other in a separate case in the APInt::trunc call because the argument is bigger than the width.
These two changes seem to avoid the asserts, I’m not sure it’s the right fix:
Index: lib/Sema/SemaExpr.cpp
I’m getting a couple of asserts, one from the assert in Sema::ActOnNumericConstant at line 1897, the other in a separate case in the APInt::trunc call because the argument is bigger than the width.
Hi John,
I don’t understand why this is a bug, can you give a testcase?
It looks like it might be a targets problem, as I only see it with -targets ppu-unknown-lv2:
File:
long long value = 0LL;
Command line:
clang -cc1 -targets ppu-unknown-lv2 file.cpp
Any idea?
-John