https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64244
--- Comment #8 from janus at gcc dot gnu.org --- The bug should be fixed on trunk with r218776. Ondrej, in case your test code is part of a larger code base, do you have the possibility to test it with gfortran trunk?