https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122080
--- Comment #12 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Harald Anlauf <[email protected]>: https://gcc.gnu.org/g:b12d5a6ba64f09b9bbe57e6f49665df9b8b6fab0 commit r16-4171-gb12d5a6ba64f09b9bbe57e6f49665df9b8b6fab0 Author: Harald Anlauf <[email protected]> Date: Tue Sep 30 21:14:12 2025 +0200 Fortran: UBSAN uninitialized stride for missing optional argument [PR122080] PR fortran/122080 gcc/fortran/ChangeLog: * trans-array.cc (gfc_conv_array_parameter): Wrap the derivation of bounds and strides for the descriptor of an optional dummy array argument by a test on argument presence when it is supposed to be passed to an optional argument. gcc/testsuite/ChangeLog: * gfortran.dg/ubsan/missing_optional_dummy_9.f90: New test.
