https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124821
--- Comment #6 from M Welinder <terra at gnome dot org> --- That's outside what just C++ gives you. At the very least you additionally need the abi or else you can know nothing about padding bytes and what's not. It's not quite as bad as (string*)(rand()) which, I suppose, is a valid way of getting a pointer to *any* stack variable if you are lucky enough.
