Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Named associate statement not handled #189

Open
jrwrigh opened this issue Jan 3, 2021 · 1 comment
Open

Named associate statement not handled #189

jrwrigh opened this issue Jan 3, 2021 · 1 comment

Comments

@jrwrigh
Copy link

jrwrigh commented Jan 3, 2021

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:

@gnikit
Copy link

gnikit commented Feb 27, 2022

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 fortran-lang/fortls#62, but at least you should not be getting diagnostic errors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants