public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/52956] New: Missing overflow warning
@ 2012-04-12 21:59 xinliangli at gmail dot com
  2012-10-28  9:31 ` [Bug c++/52956] " paolo.carlini at oracle dot com
  0 siblings, 1 reply; 2+ messages in thread
From: xinliangli at gmail dot com @ 2012-04-12 21:59 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 52956
           Summary: Missing overflow warning
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: xinliangli@gmail.com


static const long long
  DiskCacheSize = 8 << 30; // 8 Gigs

/*

overflow.cpp:1:42: warning: signed shift result (0x200000000) requires 35
bits to represent, but 'int' only has 32 bits [-Wshift-overflow]
static const long long DiskCacheSize = 8 << 30; // 8 Gigs
                                      ~ ^  ~~
1 warning generated.

*/


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

* [Bug c++/52956] Missing overflow warning
  2012-04-12 21:59 [Bug c++/52956] New: Missing overflow warning xinliangli at gmail dot com
@ 2012-10-28  9:31 ` paolo.carlini at oracle dot com
  0 siblings, 0 replies; 2+ messages in thread
From: paolo.carlini at oracle dot com @ 2012-10-28  9:31 UTC (permalink / raw)
  To: gcc-bugs


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

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |DUPLICATE

--- Comment #1 from Paolo Carlini <paolo.carlini at oracle dot com> 2012-10-28 09:31:27 UTC ---
Dup.

*** This bug has been marked as a duplicate of bug 55095 ***


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

end of thread, other threads:[~2012-10-28  9:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-12 21:59 [Bug c++/52956] New: Missing overflow warning xinliangli at gmail dot com
2012-10-28  9:31 ` [Bug c++/52956] " paolo.carlini at oracle dot com

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