We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
See:
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().
S*
C*
Pointer::isField()
GetPtrBasePop()