https://gcc.gnu.org/g:cf23e3fb53936bb851e68dfb98f05742ba5e3c2f
commit cf23e3fb53936bb851e68dfb98f05742ba5e3c2f Author: Mikael Morin <[email protected]> Date: Sun Sep 20 15:48:45 2026 +0200 Revert "Essai correction régression class_allocate_22" This reverts commit f6bd7f7ed8049f50c5f329d83ff094e7b2a24990. Diff: --- gcc/fortran/trans-stmt.cc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/gcc/fortran/trans-stmt.cc b/gcc/fortran/trans-stmt.cc index 8985d3ae30ba..2a87176ffa9f 100644 --- a/gcc/fortran/trans-stmt.cc +++ b/gcc/fortran/trans-stmt.cc @@ -6796,10 +6796,7 @@ gfc_trans_allocate (gfc_code * code, gfc_omp_namelist *omp_allocate) code->expr3->ts, false, true, false, false); - temp_var_needed = !(VAR_P (se.expr) - || (TREE_CODE (se.expr) == ADDR_EXPR - && VAR_P (TREE_OPERAND (se.expr, 0)))); - temp_obj_created = temp_var_needed; + temp_obj_created = temp_var_needed = !VAR_P (se.expr); } gfc_add_block_to_block (&block, &se.pre); if (code->expr3->must_finalize)
