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-16  7:07 ` [Bug c++/40752] -Wconversion generates false warnings for operands not larger than target type photon at seznam dot cz
                   ` (4 more replies)
  0 siblings, 5 replies; 13+ 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] 13+ messages in thread

end of thread, other threads:[~2014-09-16 21:07 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-40752-4@http.gcc.gnu.org/bugzilla/>
2011-09-25 21:55 ` [Bug c++/40752] -Wconversion generates false warnings for operands not larger than target type manu at gcc dot gnu.org
2012-03-24 20:21 ` manu at gcc dot gnu.org
2012-03-24 21:40 ` DeusExSophismata at gmail dot com
2012-05-05 15:31 ` wessjunk at gmail dot com
2012-05-05 16:05 ` manu at gcc dot gnu.org
2012-06-20 14:59 ` dichlofos-mv at yandex dot ru
2014-02-10  1:14 ` chengniansun at gmail dot com
2014-09-16 21:07 ` hariharan.gcc at gmail dot com
2009-07-14 19:17 [Bug c++/40752] New: -Wconversion generates false warnings photon at seznam dot cz
2009-07-16  7:07 ` [Bug c++/40752] -Wconversion generates false warnings for operands not larger than target type 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).