[Bug fortran/124666] [16 Regression] [UBSAN] io.cc:290:27: runtime error:
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sat Mar 28 17:59:34 GMT 2026
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124666
--- Comment #5 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jerry DeLisle <jvdelisle@gcc.gnu.org>:
https://gcc.gnu.org/g:0ac324783dfb7627332835da7e48fed2d4049da9
commit r16-8321-g0ac324783dfb7627332835da7e48fed2d4049da9
Author: Jerry DeLisle <jvdelisle@gcc.gnu.org>
Date: Sat Mar 28 10:53:55 2026 -0700
fortran: Fix [PR124666] [16 Regression] [UBSAN] io.cc:290:27: runtime error
Simple an obvious fix to avoid integer overflow.
PR fortran/124666
gcc/fortran/ChangeLog:
* io.cc (format_lex): Use enclosing parens to subtract
before adding.
More information about the Gcc-bugs
mailing list