https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85510
--- Comment #1 from Damian Rouson <damian at sourceryinstitute dot org> --- As similar error message results if the associate construct is replaced with a block construct of the form block integer n n=1 print*,i[1] end block The error disappears if the 'block' and 'end block' statements are deleted.