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 c++/54194] misleading suggestion about arithmetic in operand of '|'


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54194

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
         AssignedTo|unassigned at gcc dot       |paolo.carlini at oracle dot
                   |gnu.org                     |com

--- Comment #3 from Paolo Carlini <paolo.carlini at oracle dot com> 2012-10-05 15:36:35 UTC ---
Ok, I have the straightforward patch changing the position of the caret to the
'|'. This is certainly suboptimal but totally consistent with the existing
warn_about_parentheses infrastructure which generically mentions the operands
and prints *that* operator. I suppose that for long expressions the change can
make for a good improvement.


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