https://gcc.gnu.org/g:17d97605b89a4c3b828448f3199be06a17220b4b
commit 17d97605b89a4c3b828448f3199be06a17220b4b Author: Mikael Morin <mik...@gcc.gnu.org> Date: Tue Aug 26 21:11:22 2025 +0200 Sauvegarde correction hypothétique Sauvegarde correction hypothétique Diff: --- gcc/omp-low.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gcc/omp-low.cc b/gcc/omp-low.cc index f33a0c6ece86..b75b617dc60f 100644 --- a/gcc/omp-low.cc +++ b/gcc/omp-low.cc @@ -4036,7 +4036,11 @@ scan_omp_1_op (tree *tp, int *walk_subtrees, void *data) { tree block = BIND_EXPR_BLOCK (t); for (tree var = BLOCK_VARS (block); var; var = DECL_CHAIN (var)) - insert_decl_map (&ctx->cb, var, var); + { + tree t = maybe_lookup_decl (var, ctx); + if (t == NULL_TREE) + insert_decl_map (&ctx->cb, var, var); + } } break;