Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
clang/lib/AST/Interp/ByteCodeExprGen.cpp | ||
---|---|---|
259 | I am not sure if this is the right place to handle this but there are a bunch of other cases.
godbolt: https://godbolt.org/z/5YTY93z8M |
clang/lib/AST/Interp/ByteCodeExprGen.cpp | ||
---|---|---|
259 | I will probably move this special case out of the function and into its own. |
clang/lib/AST/Interp/Interp.h | ||
---|---|---|
1085 | This is also not being diagnosed (only rejected) by the current interpreter. But would be nice to have an error message. |
clang/lib/AST/Interp/ByteCodeExprGen.cpp | ||
---|---|---|
259 | FWIW I've looked at the link but can hardly wrap my head around what the text is talking about, let alone make some contant expression out of it that doesn't run into some sort of other error :( |
clang/lib/AST/Interp/ByteCodeExprGen.cpp | ||
---|---|---|
259 | nvm, I just realized it requires a reinterpret_cast |
clang/test/AST/Interp/arrays.cpp | ||
---|---|---|
69 | We should also have a test for addition out of bounds but subsequent addition bringing it back in bounds. Still UB but we should verify it: https://godbolt.org/z/c1MWjGdfT Apparently gcc does not catch this one. |
clang/lib/AST/Interp/Interp.h | ||
---|---|---|
1085 | The TODO is still present, will you tackle this as part of this PR or a follow-up? |
clang/lib/AST/Interp/Interp.h | ||
---|---|---|
1085 | A follow-up would be better I think. |
I am not sure if this is the right place to handle this but there are a bunch of other cases.
godbolt: https://godbolt.org/z/5YTY93z8M