You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While testing another issue, I made a typo and initialized a checked-pointer local variable with itself and was surprised to find that that compiles without error. An example:
#pragma CHECKED_SCOPE on
intmain(void) {
{
// Put an invalid pointer in the memory that will be reused by `p`.longx=1;
}
{
_Ptr<char>p=p;
(*p)++; // SIGSEGV
}
return0;
}