[Bug fortran/126816] [17 Regression] gfortran: ICE building pr46884.f since r17-3155 on some machines
"cvs-commit at gcc dot gnu.org via Gcc-bugs" <[email protected]>
| Newsgroups | gmane.comp.gcc.bugs |
|---|---|
| Message-ID | <[email protected]/bugzilla/> |
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=126816 --- Comment #8 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Jerry DeLisle <[email protected]>: https://gcc.gnu.org/g:0a59650d1ec84d0e155670ef5ae226e4c59ba748 commit r17-3389-g0a59650d1ec84d0e155670ef5ae226e4c59ba748 Author: Jerry DeLisle <[email protected]> Date: Tue Aug 18 09:46:21 2026 -0700 fortran: [PR126816] Fix use-after-free of charlen from rejected trial restore_old_symbol reverted only ts.type/ts.kind when undoing a tentative symbol change, leaving ts.u.cl pointing at whatever charlen the rejected trial had allocated via gfc_set_default_type. Restore the whole typespec instead. PR fortran/126816 gcc/fortran/ChangeLog: * symbol.cc (restore_old_symbol): Restore the whole typespec instead of just type and kind.