This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/34536] Make support of 2.0**-3*5 tighter: Print warning by default



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]