[patch, committed] Bug 124666 - [16 Regression] [UBSAN] io.cc:290:27: runtime error

Jerry D <[email protected]>
Newsgroups gmane.comp.gcc.patches,gmane.comp.gcc.fortran
Message-ID <[email protected]>
Pushed as obvious and simple.

The master branch has been updated by Jerry DeLisle <[email protected]>:

https://gcc.gnu.org/g:0ac324783dfb7627332835da7e48fed2d4049da9

commit r16-8321-g0ac324783dfb7627332835da7e48fed2d4049da9
Author: Jerry DeLisle <[email protected]>
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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.