public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/96788] New: "integer constant is so large that it is unsigned" warning is incorrect
@ 2020-08-26  0:41 richard-gccbugzilla at metafoo dot co.uk
  2020-08-26  0:52 ` [Bug c/96788] " pinskia at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: richard-gccbugzilla at metafoo dot co.uk @ 2020-08-26  0:41 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96788

            Bug ID: 96788
           Summary: "integer constant is so large that it is unsigned"
                    warning is incorrect
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: richard-gccbugzilla at metafoo dot co.uk
  Target Milestone: ---

Testcase:

  typedef __typeof(9223372036854775808LL) T;

produces the warning:

  <source>:1:18: warning: integer constant is so large that it is unsigned

for both C and C++ compilations, whether or not __int128 is available for the
target.

What actually appears to happen is that T is __int128 if __int128 is available,
and T is otherwise 'long long'.

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

end of thread, other threads:[~2023-08-08 10:18 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-26  0:41 [Bug c/96788] New: "integer constant is so large that it is unsigned" warning is incorrect richard-gccbugzilla at metafoo dot co.uk
2020-08-26  0:52 ` [Bug c/96788] " pinskia at gcc dot gnu.org
2020-08-26  8:38 ` redi at gcc dot gnu.org
2020-08-26 18:47 ` richard-gccbugzilla at metafoo dot co.uk
2020-08-26 18:49 ` richard-gccbugzilla at metafoo dot co.uk
2020-08-26 22:55 ` joseph at codesourcery dot com
2020-11-19 23:04 ` pascal_cuoq at hotmail dot com
2023-08-08 10:18 ` redi 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).