public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/96911] New: bug with Intrinsic shifta/shiftl/shiftr
@ 2020-09-03  7:28 zhen.xu@compiler-dev.com
  2020-09-03 14:44 ` [Bug fortran/96911] " anlauf at gcc dot gnu.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: zhen.xu@compiler-dev.com @ 2020-09-03  7:28 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 96911
           Summary: bug with Intrinsic shifta/shiftl/shiftr
           Product: gcc
           Version: 10.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: zhen.xu@compiler-dev.com
  Target Milestone: ---

Dealing with Intrinsic shifta/shiftl/shiftr, gfortran refuses proper numbers in
the code below and throws "Error: Integer too big for its kind". 

The code is checked with ifort.

-------code----------
program test
  print *, shifta(-128_1, 1);
  print *, shifta(-32768_2, 1);
  print *, shifta(-2147483648_4, 1);
  print *, shifta(-9223372036854775808_8, 1);

  print *, shiftl(-128_1, 1);
  print *, shiftl(-32768_2, 1);
  print *, shiftl(-2147483648_4, 1);
  print *, shiftl(-9223372036854775808_8, 1);

  print *, shiftr(-128_1, 1);
  print *, shiftr(-32768_2, 1);
  print *, shiftr(-2147483648_4, 1);
  print *, shiftr(-9223372036854775808_8, 1);

end
----------------------

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

end of thread, other threads:[~2020-09-04  1:20 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-03  7:28 [Bug fortran/96911] New: bug with Intrinsic shifta/shiftl/shiftr zhen.xu@compiler-dev.com
2020-09-03 14:44 ` [Bug fortran/96911] " anlauf at gcc dot gnu.org
2020-09-03 16:44 ` kargl at gcc dot gnu.org
2020-09-04  0:54 ` zhen.xu@compiler-dev.com
2020-09-04  1:03 ` zhen.xu@compiler-dev.com
2020-09-04  1:18 ` zhen.xu@compiler-dev.com
2020-09-04  1:20 ` zhen.xu@compiler-dev.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).