This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/51755] -Wconversion generates false warnings when the ternary operator is used
- From: "manu at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 05 Jan 2012 15:32:03 +0000
- Subject: [Bug c++/51755] -Wconversion generates false warnings when the ternary operator is used
- Auto-submitted: auto-generated
- References: <bug-51755-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51755
Manuel LÃpez-IbÃÃez <manu at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
CC| |manu at gcc dot gnu.org
Resolution| |DUPLICATE
--- Comment #5 from Manuel LÃpez-IbÃÃez <manu at gcc dot gnu.org> 2012-01-05 15:32:03 UTC ---
(In reply to comment #3)
> Hi Jason. Looks like people are really unhappy with the -Wconversion warnings
> vs the ternary operator, and I'd like to look into these issues in time for
> 4.7. At the moment I'm confused, however, because I don't understand if the
> patch linked by Manuel in PR51294 (maybe we can consolidate these two issues)
> was rejected in a unamendable way, or we (I) can start from it and complete the
> work. Can you guide me a bit? Thanks...
In fact, it would be the opposite. Start from it and cut out what Joseph was
against, which is to not warn for char a,b,c; a = b * c, which is what PR40752
asks for. The ternary operator (PR51294) was orthogonal to this issue but the
patch fixed both.
(I wouldn't send a patch like that now, but I was a newbie then.)
I think this is a clearly a duplicate of 51294.
*** This bug has been marked as a duplicate of bug 51294 ***