Le 09/03/2025 à 17:40, Thomas Koenig a écrit :
Hi Mikael,
_symbol *asym = a->expr->symtree->n.sym;
You may consider calling gfc_commit_symbol(s) instead at the end of
the function body. It might avoid leaking the old_symbol field in
case the function is called more than once or the symbol is already
existing (not completely clear whether that can happen).
You're right, this is the cleaner solution.
(Actually, none of the cases you mentioned above can happen, at least
not now, but you're right). Patch which does this approved?
Sure.