public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/39170]  New: -Wconversion useless
@ 2009-02-12 17:34 tom at atoptech dot com
  2009-02-12 17:39 ` [Bug c/39170] " pinskia at gcc dot gnu dot org
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: tom at atoptech dot com @ 2009-02-12 17:34 UTC (permalink / raw)
  To: gcc-bugs

I'm sure this has been reported.

General narrowing of a value (i,e double to int) needs to be reported, but
bit-fields narrowing should not be reported unless asked for. There is nothing
in "C" or "C++" to cast a bit-field, which in theory, would remove the warning.
This is a serious problem and it makes gcc 4.3 not usable!

Test case:

Compile "gcc" with -Wconversion.

Bit-field warnings need to be disabled We need a 4.3.3 patch otherwise we punt
on 4.3 release.


-- 
           Summary: -Wconversion useless
           Product: gcc
           Version: 4.3.3
            Status: UNCONFIRMED
          Severity: major
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: tom at atoptech dot com


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


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2010-03-06 12:19 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-02-12 17:34 [Bug c++/39170] New: -Wconversion useless tom at atoptech dot com
2009-02-12 17:39 ` [Bug c/39170] " pinskia at gcc dot gnu dot org
2009-02-12 18:10 ` tom at atoptech dot com
2009-03-08  3:30 ` [Bug c/39170] cannot silence -Wconversion warnings for bit-fields manu at gcc dot gnu dot org
2009-03-10 17:40 ` tom at atoptech dot com
2009-03-10 19:16 ` manu at gcc dot gnu dot org
2009-03-10 20:34 ` tom at atoptech dot com
2010-01-13 13:40 ` faure at kde dot org
2010-02-18 20:50 ` Zachary_Deretsky at mentor dot com
2010-03-06  0:20 ` Zachary_Deretsky at mentor dot com
2010-03-06  1:37 ` jengliang at gmail dot com
2010-03-06 12:19 ` [Bug c/39170] provide an option to " manu at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).