[Bug c++/38522] g++ -Wconversion warnings

2009-03-03 Thread oleg dot smolsky at riverbed dot com
--- Comment #3 from oleg dot smolsky at riverbed dot com 2009-03-03 19:40 --- I've just built gcc from the official SVN and it looks like this bug is not fully fixed. The following code generates a warning when compiled with -Wconversion: #include cstdlib #define M10xC0u

[Bug c++/38522] g++ -Wconversion warnings

2009-03-03 Thread oleg dot smolsky at riverbed dot com
--- Comment #5 from oleg dot smolsky at riverbed dot com 2009-03-03 22:24 --- BTW, my comment was about the C++ frontend. IE: .../gcc44/bin/g++ -c -Wall -W -Wconversion test.cpp -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38522

[Bug c++/39089] New: -Wconversion is buggy with bitwise operators

2009-02-03 Thread oleg dot smolsky at riverbed dot com
: unassigned at gcc dot gnu dot org ReportedBy: oleg dot smolsky at riverbed dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39089

[Bug c++/39089] -Wconversion is buggy with bitwise operators

2009-02-03 Thread oleg dot smolsky at riverbed dot com
--- Comment #1 from oleg dot smolsky at riverbed dot com 2009-02-03 17:58 --- Created an attachment (id=17238) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17238action=view) The test case -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39089

[Bug c++/39089] -Wconversion is buggy with bitwise operators

2009-02-03 Thread oleg dot smolsky at riverbed dot com
--- Comment #6 from oleg dot smolsky at riverbed dot com 2009-02-03 22:23 --- Created an attachment (id=17239) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17239action=view) The fix from gcc4.4 This is the naive fix merged from the trunk. Fixes two out of three warnings in C

[Bug c++/39089] -Wconversion is buggy with bitwise operators

2009-02-03 Thread oleg dot smolsky at riverbed dot com
--- Comment #5 from oleg dot smolsky at riverbed dot com 2009-02-03 21:13 --- I've just built gcc 4.4 and it emits no warnings for the test case above. Is there any chance the fix could be back-ported into 4.3? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39089