public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/50810] New: c++0x-compat does not warn about narrowing conversions
@ 2011-10-20 13:41 public at alisdairm dot net
  2011-10-20 13:55 ` [Bug c++/50810] " redi at gcc dot gnu.org
                   ` (19 more replies)
  0 siblings, 20 replies; 21+ messages in thread
From: public at alisdairm dot net @ 2011-10-20 13:41 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 50810
           Summary: c++0x-compat does not warn about narrowing conversions
    Classification: Unclassified
           Product: gcc
           Version: 4.6.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: public@alisdairm.net


The following program is rejected by g++ in -std=c++0x mode (assuming 'char' is
signed) but does not raise any warnings when compiled with -Wc++0x-compat:


int main() {
   char data[] = { 0xff };
   char value = 0xff;
}


This is significantly the largest source of compatibility errors in our
code-base today (>95% of our known issues), so it would be very useful if the
warning caught these.


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

end of thread, other threads:[~2011-11-02 20:54 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-10-20 13:41 [Bug c++/50810] New: c++0x-compat does not warn about narrowing conversions public at alisdairm dot net
2011-10-20 13:55 ` [Bug c++/50810] " redi at gcc dot gnu.org
2011-10-21 22:50 ` paolo.carlini at oracle dot com
2011-10-21 22:57 ` paolo.carlini at oracle dot com
2011-10-22  1:15 ` manu at gcc dot gnu.org
2011-10-22  1:25 ` manu at gcc dot gnu.org
2011-10-22  4:38 ` jason at gcc dot gnu.org
2011-10-22  9:19 ` paolo.carlini at oracle dot com
2011-10-23  0:37 ` paolo.carlini at oracle dot com
2011-10-23  2:08 ` jason at redhat dot com
2011-10-23  2:13 ` paolo.carlini at oracle dot com
2011-10-23 18:37 ` paolo at gcc dot gnu.org
2011-10-23 18:37 ` paolo.carlini at oracle dot com
2011-10-23 21:02 ` paolo at gcc dot gnu.org
2011-10-23 21:03 ` paolo.carlini at oracle dot com
2011-10-23 21:16 ` paolo at gcc dot gnu.org
2011-10-23 21:44 ` manu at gcc dot gnu.org
2011-10-23 21:56 ` manu at gcc dot gnu.org
2011-10-24 12:36 ` manu at gcc dot gnu.org
2011-11-02 20:17 ` jason at gcc dot gnu.org
2011-11-02 20:54 ` jason at gcc dot gnu.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).