--- 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
--- 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
: 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
--- 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
--- 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
--- 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