This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/30464] [regression] -Wconversion triggers warnings for deque<>::push_back()
- From: "gdr at cs dot tamu dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 Jan 2007 11:09:47 -0000
- Subject: [Bug libstdc++/30464] [regression] -Wconversion triggers warnings for deque<>::push_back()
- References: <bug-30464-231@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #10 from gdr at cs dot tamu dot edu 2007-01-17 11:09 -------
Subject: Re: [regression] -Wconversion triggers warnings for
deque<>::push_back()
"pcarlini at suse dot de" <gcc-bugzilla@gcc.gnu.org> writes:
| Gaby, any news about the signed <-> unsigned warning itself? Are we going to
| keep it or are we coming to the conclusion it's too noisy?
Hi Paolo,
Here is the key element we should think about, and why I think this
specific warning is not useful. GCC supports only 2s complement
targets. Given that, I don't see what this "altering value"
diagnostoc is helping.
I consider that a conversion from T to U may alter value if a round
trip may give a different result back. E.g.
Given
U u = t;
the assertion
assert (T(u) == t);
may fail for some value in T.
-- Gaby
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30464