public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/40752]  New: -Wconversion generates false warnings
@ 2009-07-14 19:17 photon at seznam dot cz
  2009-07-14 19:21 ` [Bug c++/40752] " pinskia at gcc dot gnu dot org
                   ` (18 more replies)
  0 siblings, 19 replies; 20+ messages in thread
From: photon at seznam dot cz @ 2009-07-14 19:17 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 636 bytes --]

-Wconversion generates false warnings for the following clean code:

{
        char c = 1;
        char c2 = 2;

        // warning: conversion to ‘char’ from ‘int’ may alter its value
        c >>= 1;
        c += (char) 1;
        c += c2;
        c = ~c2;
}


-- 
           Summary: -Wconversion generates false warnings
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: photon at seznam dot cz


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


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

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

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-07-14 19:17 [Bug c++/40752] New: -Wconversion generates false warnings photon at seznam dot cz
2009-07-14 19:21 ` [Bug c++/40752] " pinskia at gcc dot gnu dot org
2009-07-14 20:56 ` manu at gcc dot gnu dot org
2009-07-14 20:56 ` manu at gcc dot gnu dot org
2009-07-14 22:24 ` ian at airs dot com
2009-07-14 22:30 ` [Bug c++/40752] -Wconversion: do not warn for operands not larger than target type manu at gcc dot gnu dot org
2009-07-15  7:50 ` photon at seznam dot cz
2009-07-15  7:55 ` photon at seznam dot cz
2009-07-15  8:14 ` pinskia at gcc dot gnu dot org
2009-07-15 14:00 ` ian at airs dot com
2009-07-15 14:15 ` joseph at codesourcery dot com
2009-07-15 16:56 ` photon at seznam dot cz
2009-07-15 16:58 ` pinskia at gcc dot gnu dot org
2009-07-15 17:00 ` pinskia at gcc dot gnu dot org
2009-07-15 18:24 ` photon at seznam dot cz
2009-07-16  7:07 ` [Bug c++/40752] -Wconversion generates false warnings " photon at seznam dot cz
2009-07-23 15:35 ` manu at gcc dot gnu dot org
2009-09-05 14:05 ` manu at gcc dot gnu dot org
2010-06-11 20:22 ` manu at gcc dot gnu dot org
2010-06-12 16:46 ` photon at seznam dot cz

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).