This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Patch, Fortran] PR57894 - MIN/MAX arg= check
- From: Mikael Morin <mikael dot morin at sfr dot fr>
- To: Tobias Burnus <burnus at net-b dot de>
- Cc: gcc patches <gcc-patches at gcc dot gnu dot org>, gfortran <fortran at gcc dot gnu dot org>
- Date: Sat, 20 Jul 2013 23:02:55 +0200
- Subject: Re: [Patch, Fortran] PR57894 - MIN/MAX arg= check
- References: <51E563C1 dot 301 at net-b dot de>
Le 16/07/2013 17:16, Tobias Burnus a écrit :
> As reported in the PR, gfortran was lacking a check for the args= for
> MIN/MAX. Those are special as they accept 'infinitely' many arguments -
> while others have a finite set.
>
> Added checks:
> - Ensure that only a1=, a2=, a3= etc. is used.
> - Ensure that every argument occurs only once
> - ensure that the first two arguments (a1=, a2= when keywords are used)
> are always present
>
> Build and regtested on x86-64-gnu-linux.
> OK for the trunk?
>
Yes, with a few indenting problems (8+ spaces) fixed.
Thanks
Mikael