https://gcc.gnu.org/bugzilla/show_bug.cgi?id=46115
Martin Uecker <muecker at gwdg dot de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |muecker at gwdg dot de --- Comment #7 from Martin Uecker <muecker at gwdg dot de> --- The documentation implies that the pointer escaping the scope and calling the function is safe as long as it does not access a variable of the enclosing function that went out of scope.