public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "tom at atoptech dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/39170]  New: -Wconversion useless
Date: Thu, 12 Feb 2009 17:34:00 -0000	[thread overview]
Message-ID: <bug-39170-17296@http.gcc.gnu.org/bugzilla/> (raw)

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


             reply	other threads:[~2009-02-12 17:34 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-12 17:34 tom at atoptech dot com [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-39170-17296@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).