This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/54194] misleading suggestion about arithmetic in operand of '|'
- From: "paolo.carlini at oracle dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 05 Oct 2012 15:36:35 +0000
- Subject: [Bug c++/54194] misleading suggestion about arithmetic in operand of '|'
- Auto-submitted: auto-generated
- References: <bug-54194-4@http.gcc.gnu.org/bugzilla/>
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.