This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/34536] Make support of 2.0**-3*5 tighter: Print warning by default
- From: "dfranke at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 Dec 2007 14:23:04 -0000
- Subject: [Bug fortran/34536] Make support of 2.0**-3*5 tighter: Print warning by default
- References: <bug-34536-13404@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from dfranke at gcc dot gnu dot org 2007-12-20 14:23 -------
> You forgot about the minus sign.
Blind spot. If in doubt, I have a habit of putting extra-paranthesis anyway :)
On topic:
Metcalf, Section 3.2, states: "[...] a unary minus or plus must not follow
immediately after another operator. When it is needed, as for $x^{-y}$,
parantheses must be placed around the operator and the operand x**(-y)."
Agreed, this should not be hidden in -pedantic; we should use -Wall instead or
even a default warning as suggested.
--
dfranke at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2007-12-20 14:23:04
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34536