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

            Bug ID: 103447
           Summary: left shift operator gives wrong result for shift of 48
           Product: gcc
           Version: 9.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: pgmer6809 at yahoo dot com
  Target Milestone: ---

Created attachment 51886
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51886&action=edit
results of the gcc -v save-temps

GCC cannot handle  the statement:

unsigned long long int two48 = 1<<48

on a 64 bit machine with sizeof (two48) = 8.

However it can handle the following fragment:

unsigned long long int two16, two48;
two16 =  256 * 256;
two48=two16*two16*two16 ;

See below
I wanted to attach all the files but I can only attach one.
You said not to make archive or zip files so there it is. No .s or .i file

Reply via email to