This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [patch, fortran] PR34536 - add default warning
- From: Tobias Burnus <burnus at net-b dot de>
- To: Daniel Franke <franke dot daniel at gmail dot com>
- Cc: fortran at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Date: Fri, 21 Dec 2007 15:02:24 +0100
- Subject: Re: [patch, fortran] PR34536 - add default warning
- References: <200712211241.52630.franke.daniel@gmail.com>
Daniel Franke wrote:
> As suggested by Tobias in PR34536, this patch gives a warning by default for
> invalid code as "2.0**-3*5". If -std=f*, an error is emitted instead.
>
> * matchexp.c (match_ext_mult_operand): Print warning for unary
> operators following arithmetic ones by default.
> (match_ext_add_operand): Likewise.
>
I have currently no time to review the patch, but I would like to see a
test case for the warning. (Unless, there is already one for -std=f95,
then it might not be needed.)
Tobias