[patch, fortran] PR34536 - add default warning
Daniel Franke
franke.daniel@gmail.com
Fri Dec 21 11:42:00 GMT 2007
Hi all.
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.
:ADDPATCH fortran:
gcc/fortran:
2007-12-21 Daniel Franke <franke.daniel@gmail.com>
* matchexp.c (match_ext_mult_operand): Print warning for unary
operators following arithmetic ones by default.
(match_ext_add_operand): Likewise.
gcc/testsuite:
2007-12-21 Daniel Franke <franke.daniel@gmail.com>
* gfortran.dg/integer_exponentiation_2.f90: Fixed testcase.
* gfortran.dg/real_const_3.f90: Likewise.
Regression tested on i686-pc-linux-gnu, no errors. Ok for trunk?
Regards
Daniel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr34536.diff
Type: text/x-diff
Size: 8648 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20071221/8aa29657/attachment.bin>
More information about the Fortran
mailing list