Menu

#2238 Wrong error line output when using nested block structure

open
nobody
None
2020-03-17
2020-03-16
No

Hey guys!

I think I remember there was a similar issue posted some time ago, but I wasn't able to find it so sorry for posting it again (in case it is the same issue).
When an error occurs within a nested block structure (if/do for/while), the output line of error is the last line of the first block structure element. See the example here:

if(1) {
    if(1) {
            a #error occurs here
    }
    print 1 #error is indicated in this line
}

Is there any solution to this problem?
Thanks for your help,
Alex

Discussion

  • Ethan Merritt

    Ethan Merritt - 2020-03-17

    I think this was fixed at one point, but seems to have broken again.

     
  • Alexander Stangl

    Ok, thanks for the info.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.