fortran-language-server icon indicating copy to clipboard operation
fortran-language-server copied to clipboard

Named associate statement not handled

Open jrwrigh opened this issue 5 years ago • 1 comments

Very similar to #72, but with named associate blocks. The commented lower two lines works just fine (as was fixed in #72). The upper uncommented lines do not work with fortls:

program test
implicit none

      testing: associate(c => 1)
      end associate testing
      ! associate(c => a) ! works fine
      ! end associate
end program test

Error message:

Unexpected end of scope at line 6

The above example code does compile successfully with gfortran.

Info about the associate language spec itself:

jrwrigh avatar Jan 03 '21 19:01 jrwrigh

Hi @jrwrigh FYI this should now be fixed in the fortls Language Server. There is however a bug where the type of c does not display see https://github.com/gnikit/fortls/issues/62, but at least you should not be getting diagnostic errors.

gnikit avatar Feb 27 '22 19:02 gnikit