Re: [patch, Fortran] Implement maxval/minval for UNSIGNED

2024-10-01 Thread Thomas Koenig
Hi Andre, + if (gfc_option.allow_std & GFC_STD_F2003) + gfc_error ("%qs argument of %qs intrinsic at %L must be INTEGER " + "or REAL or CHARACTER", I had expected UNSIGNED in this enumeration, too. + gfc_current_intrinsic_arg[n]->name

Re: [patch, Fortran] Implement maxval/minval for UNSIGNED

2024-10-01 Thread Andre Vehreschild
Hi Thomas, one small nit: diff --git a/gcc/fortran/check.cc b/gcc/fortran/check.cc index dd79a49a0c9..afab66a901f 100644 --- a/gcc/fortran/check.cc +++ b/gcc/fortran/check.cc @@ -637,6 +637,38 @@ int_or_real_or_char_check_f2003 (gfc_expr *e, int n) return true; } +/* Check that an expression