Skip to content
This repository has been archived by the owner on Mar 4, 2018. It is now read-only.

Go to assignment works (wrong) on string literals #422

Open
GitMensch opened this issue May 8, 2017 · 0 comments
Open

Go to assignment works (wrong) on string literals #422

GitMensch opened this issue May 8, 2017 · 0 comments

Comments

@GitMensch
Copy link

GitMensch commented May 8, 2017

As an example take https://sourceforge.net/p/open-cobol/contrib/89/tree/trunk/samples/worldcities/worldcities2.cbl (depending on the version of cobc you use, you may have to swap the lines special-names. and repository. in configuration section.).

given the lines 285-289:

    if city-file-name = 'techtonics'
        call 'techtonics' using command-file-name techtonics end-call
        close run-file
        stop run
    end-if

you can go to the assignment of 'techtonics' in both the if and the call. While the later, leading to the sub-program (which is included in the source) would be nice I see no use of going to the variable definition "tectonics" when clicking on the string literal of a comparison.

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

No branches or pull requests

2 participants