https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110099
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed| |2023-06-02
Status|UNCONFIRMED |NEW
Ever confirmed|0 |1
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
The order of making the variable as POSION is in the wrong order and not before
the finally.
Also can be repdoceud using the attribute cleanup:
```
void g(void *a)
{
*(int*)a = 10;
}
int main() {
int *t __attribute__((cleanup(g)));
int x = 0;
t = &x;
}
```