https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106507
--- Comment #1 from Bálint Aradi <baradi09 at gmail dot com> --- Tested with gfortran 14.1, the issue is still present, the example still can not be compiled and triggers the same (false) error message.