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++/18821] Please add warning if bits thrown away in integral conversions



------- Comment #4 from manu at gcc dot gnu dot org  2006-11-26 13:57 -------
This will be fixed by the new Wconversion option. Actually, it has been fixed
already for gcc version 4.3.0 20061124 (experimental).

manuel@gcc05:~$ local/bin/g++  -c -Wconversion pr18821.C
pr18821.C: In function ?int main()?:
pr18821.C:8: warning: conversion to ?short unsigned int? from ?long unsigned
int? may alter its value

I hope this makes you happy! 

It is a shame that I missed this bug in the Changelog. Should I modify the
Changelog or what is done is done ?


-- 

manu at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |manu at gcc dot gnu dot org


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


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