https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93834
Tobias Burnus <burnus at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |burnus at gcc dot gnu.org Resolution|--- |FIXED --- Comment #9 from Tobias Burnus <burnus at gcc dot gnu.org> --- FIXED. Thanks for the report. Based on the discussion, it was decided that the code is was probably valid (i.e. 'scalar[4]' is regarded as allocatable). Cf. https://gcc.gnu.org/pipermail/fortran/2021-September/056486.html and in particular Malcolm's judgement at https://mailman.j3-fortran.org/pipermail/j3/2021-September/013322.html