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

kargl at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
         Resolution|---                         |FIXED

--- Comment #2 from kargl at gcc dot gnu.org ---
Ugh.  For such a short testcase, please don't attach a zip file.  Just paste it
into the comment.

% gfcx -c main.f90 
main.f90:5:90:

    5 |   INTEGER(INT64), dimension(2), parameter:: arr1 = [integer(int64)::
-3300711175878204139, 8258803693257250632]
      |                                                                        
                 1
Error: Integer too big for its kind at (1). This check can be disabled with the
option '-fno-range-check'

This is the correct behavior.  -3300711175878204139 and 8258803693257250632 are
default integer kind, which is 32 bit and both numbers are outside the range of
[-huge(1)-1:huge(1)].

Reply via email to