https://gcc.gnu.org/g:7aca3ac3598c27b7560103483c4efd18d84e0485
commit 7aca3ac3598c27b7560103483c4efd18d84e0485 Author: Mikael Morin <[email protected]> Date: Fri Oct 16 14:16:14 2026 +0200 Correction alloc_comp_class_5 Diff: --- gcc/fortran/trans-array.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/fortran/trans-array.cc b/gcc/fortran/trans-array.cc index 2d33c500195f..5c3e29a8ae74 100644 --- a/gcc/fortran/trans-array.cc +++ b/gcc/fortran/trans-array.cc @@ -8452,7 +8452,7 @@ gfc_conv_expr_descriptor (gfc_se *se, gfc_expr *expr) loop.array_parameter = 1; else /* The right-hand side of a pointer assignment mustn't use a temporary. */ - gcc_assert (!se->direct_byref); + gcc_assert (!se->direct_byref || se->byref_noassign); /* Do we need bounds checking or not? */ ss->no_bounds_check = expr->no_bounds_check;
