Skip to content

BLOCK DATA and subsequent definitions error #470

Open
@prsja

Description

@prsja

I have a working code in Fortran 90 that I compile using Silverfrost FTN95 compiler. Code has been in use since 90's and compiler is not resulting in any errors or warnings. However, while using fortls in my VS code I stumble upon this 'Unexpected end of scope at line x' error and then all subsequent subroutines show an error 'Subroutine/Function definition before CONTAINS statement'.

I know that deleting the 'BLOCK DATA' definition will solve this issue entirely. Also, moving this definition to the very end also solves the problem, so it seems that for some reason it affects subsequent methods/functions. However, I am not allowed to modify the code, so both of these solutions are not an option for me.

Is there maybe a setting that I have missed that will help me with this or is this something fortls developer could look at?

Please see attached pictures. First picture shows error at line 2, and the other one shows error at line 10.

best regards,
prs

Image
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions