https://bugs.documentfoundation.org/show_bug.cgi?id=166720

Mike Kaganski <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |DUPLICATE
             Status|UNCONFIRMED                 |RESOLVED

--- Comment #1 from Mike Kaganski <[email protected]> ---
The minus may be either a binary operator (as in your second expression), or
unary (as in first). They are different, and have different precedence. An
unary minus is applied to the number, not to the result of raising to a power,
so your first expression is equivalent to "(-A1)^2+A2^2". That is defined in
the standard, so not a bug. However, that is not obvious; there is a request to
make such expressions to auto-parenthesise, to remove ambiguity.

*** This bug has been marked as a duplicate of bug 114929 ***

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to