https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103447
--- Comment #2 from Greg Morse <pgmer6809 at yahoo dot com> --- Thanks for the v. quick reply. I feel like an idiot.G. M. On Friday, November 26, 2021, 04:13:45 p.m. PST, pinskia at gcc dot gnu.org <gcc-bugzi...@gcc.gnu.org> wrote: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103447 Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Use 1ll<<48 to get the right value. 1 by itself is of type int which is 32 bit so you are shifting outside of the bounds and there for it is undefined.