il dangling reference è un puntatore che punta a un oggetto che non esiste più
es:

{int* p;
{int a;
p =&a;
}
}