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: "pcarlini at suse dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 28 Jan 2007 20:05: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 #17 from pcarlini at suse dot de 2007-01-28 20:05 -------
(In reply to comment #16)
> I think that we agreed that people using -Wconversion do want warnings for
> larger->smaller conversions. When you mention same size types, do you mean
> conversions between signed and unsigned types?
Curious how words can appear ambiguous... ;) In my understanding, the size has
nothing to do by itself with signedness. And from the previous discussions
seemed obvious (to me) that, as regards integer types, people want warnings
only when the size of source and target are different (smaller for target).
Floating points are not at issue, also rather obvious to me, should remain
untouched in -Wconversion.
Confirmed that so far I haven't found any larger signed -> small unsigned
conversion, personally, I would probably explicitely cast anyway, in that case.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30464