public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/109750] New: Incorrect code generated for shifted bit field
@ 2023-05-05 17:27 jim.gray at atos dot net
  2023-05-05 17:33 ` [Bug c++/109750] " pinskia at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: jim.gray at atos dot net @ 2023-05-05 17:27 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 109750
           Summary: Incorrect code generated for shifted bit field
           Product: gcc
           Version: 9.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jim.gray at atos dot net
  Target Milestone: ---

Created attachment 55008
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55008&action=edit
Tar file with source, assembly listing, compile script, executable

Attached is a simple program that shows the problem encountered.

Bad output when compiling with GCC compiler on Ubuntu
~/gcc-bug$ ./gccbug
  Source = 000000020000
  Target = 000000000200
  Target = 1777777777760000000200

Good output when compiling with MS C++ compiler on Windows:
>gccbug
  Source = 000000020000
  Target = 000000000200
  Target = 020000000200

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

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

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-05 17:27 [Bug c++/109750] New: Incorrect code generated for shifted bit field jim.gray at atos dot net
2023-05-05 17:33 ` [Bug c++/109750] " pinskia at gcc dot gnu.org
2023-05-05 17:37 ` pinskia at gcc dot gnu.org
2023-05-05 17:57 ` jim.gray at atos dot net
2023-05-05 18:00 ` pinskia at gcc dot gnu.org
2023-05-05 18:13 ` jim.gray at atos dot net
2023-05-05 18:21 ` pinskia at gcc dot gnu.org
2023-05-05 18:22 ` pinskia 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).