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

            Bug ID: 125458
           Summary: Constant integer overflow not detected
           Product: gcc
           Version: 17.0
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: tkoenig at gcc dot gnu.org
  Target Milestone: ---

The following does not issue a diagnostic:

$ cat overfl.f90 
program main
  print *,12345678*2345678
end program main
$ gfortran -frange-check overfl.f90
$ ./a.out
 -1979197244

Reply via email to