https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120131
Bug ID: 120131 Summary: Misleading and unnecessary error message due to range check Product: gcc Version: 13.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: vterzi1996 at gmail dot com Target Milestone: --- `gfortran` fails to compile the following code: ``` print*,-2147483648;end ``` It prints the error message: ``` Error: Integer too big for its kind at (1). This check can be disabled with the option ‘-fno-range-check’ ``` This error message is misleading and unnecessary, since -2147483648 is not too big for its kind and can be successfully generated with `-huge(0)-1`. `ifx` and `nvfortran` compile this code without any problems.