Issue 134796
Summary Bytecode interpreter: Crash with invalid base casts
Labels clang:frontend, clang:bytecode
Assignees
Reporter tbaederr
    See:
```c++
struct C{
  int a;
};
struct S {
  constexpr S() {
    ((C*)this)->a = 12;
 }
};
constexpr S s;
```
We don't diagnose the invalid cast from `S*` to `C*` and instead crash in `Pointer::isField()` which is called via `GetPtrBasePop()`.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to