https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109453
Jerry DeLisle <jvdelisle at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|UBOUND incorrect when used |[REGRESSION] UBOUND |in declartion of another |incorrect when used in |array |declartion of another array --- Comment #3 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> --- I am using: $ gfc -v Using built-in specs. COLLECT_GCC=gfc COLLECT_LTO_WRAPPER=/home/jerry/dev/usr/libexec/gcc/x86_64-pc-linux-gnu/13.0.1/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: ../trunk/configure --prefix=/home/jerry/dev/usr --enable-languages=c,c++,fortran --enable-libgomp --disable-bootstrap Thread model: posix Supported LTO compression algorithms: zlib gcc version 13.0.1 20230407 (experimental) (GCC) So that makes this a regression I believe.