Re: [PATCH] fortran: Fix up paste in gfc_get_array_descr_info

2024-08-01 Thread Mikael Morin
Hello, Le 01/08/2024 à 10:53, Jakub Jelinek a écrit : Hi! A static analyzer found a pasto in gfc_get_array_descr_info. The code does t = base_decl; if (!integer_zerop (dtype_off)) t = fold_build_pointer_plus (t, dtype_off); dtype = TYPE_MAIN_VARIANT (get_dtype_type

[PATCH] fortran: Fix up paste in gfc_get_array_descr_info

2024-08-01 Thread Jakub Jelinek
Hi! A static analyzer found a pasto in gfc_get_array_descr_info. The code does t = base_decl; if (!integer_zerop (dtype_off)) t = fold_build_pointer_plus (t, dtype_off); dtype = TYPE_MAIN_VARIANT (get_dtype_type_node ()); field = gfc_advance_chain (TYPE_FIELDS (dtyp