public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/52654] New: [C++11] Warn on overflow in user-defined literals
@ 2012-03-21 10:48 marc.glisse at normalesup dot org
  2012-03-29 16:42 ` [Bug c++/52654] " paolo.carlini at oracle dot com
                   ` (20 more replies)
  0 siblings, 21 replies; 22+ messages in thread
From: marc.glisse at normalesup dot org @ 2012-03-21 10:48 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 52654
           Summary: [C++11] Warn on overflow in user-defined literals
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: marc.glisse@normalesup.org


Hello,

should there be a warning for this kind of overflow? (-Wall -Wextra is
currently silent)

int operator"" _w(unsigned long long){return 0;}
int main(){
  return 12345678901234567890123456789012345678901234567890_w;
}


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

end of thread, other threads:[~2012-11-29 10:33 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-21 10:48 [Bug c++/52654] New: [C++11] Warn on overflow in user-defined literals marc.glisse at normalesup dot org
2012-03-29 16:42 ` [Bug c++/52654] " paolo.carlini at oracle dot com
2012-03-30 14:39 ` 3dw4rd at verizon dot net
2012-03-30 15:13 ` jakub at gcc dot gnu.org
2012-03-30 17:51 ` 3dw4rd at verizon dot net
2012-03-31 17:04 ` 3dw4rd at verizon dot net
2012-03-31 17:07 ` 3dw4rd at verizon dot net
2012-03-31 18:30 ` marc.glisse at normalesup dot org
2012-03-31 20:09 ` 3dw4rd at verizon dot net
2012-04-05 19:31 ` 3dw4rd at verizon dot net
2012-04-06  4:52 ` 3dw4rd at verizon dot net
2012-04-06 11:23 ` manu at gcc dot gnu.org
2012-04-06 11:46 ` manu at gcc dot gnu.org
2012-04-06 15:33 ` 3dw4rd at verizon dot net
2012-04-06 15:37 ` manu at gcc dot gnu.org
2012-04-06 16:41 ` manu at gcc dot gnu.org
2012-04-06 17:40 ` 3dw4rd at verizon dot net
2012-04-06 18:39 ` manu at gcc dot gnu.org
2012-06-06 15:04 ` 3dw4rd at verizon dot net
2012-11-28  3:05 ` 3dw4rd at verizon dot net
2012-11-29  2:31 ` emsr at gcc dot gnu.org
2012-11-29 10:33 ` 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).