octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #57159] warning missing-semicolon reports line


From: Rik
Subject: [Octave-bug-tracker] [bug #57159] warning missing-semicolon reports line -1 and column -1 for an array
Date: Sun, 3 Nov 2019 11:12:47 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko

Update of bug #57159 (project octave):

                Severity:              3 - Normal => 1 - Wish               
                Priority:              5 - Normal => 3 - Low                
              Item Group:         Feature Request => Inaccurate Result      
                  Status:                    None => Confirmed              
                 Release:                   5.1.0 => dev                    

    _______________________________________________________

Follow-up Comment #1:

Confirmed.  I have uploaded a new example file "f2.m" which I used to
reproduce the result.  The contents of f2.m are


function f1()
[a]
endfunction


Running the code with the latest development branch shows


run-octave -f -q
octave:1> warning ("on", "Octave:missing-semicolon");
octave:2> f2
warning: missing semicolon near line -1, column -1 in file
'/home/rik/wip/Projects_Mine/octave-dev/f2.m'
warning: function name 'f1' does not agree with function filename
'/home/rik/wip/Projects_Mine/octave-dev/f2.m'
error: 'a' undefined near line 2, column 2
error: called from
    f2


So some reporting, such as 'a' undefined', correctly identifies the line
number, while the missing semicolon warning does not.


(file #47789)
    _______________________________________________________

Additional Item Attachment:

File name: f2.m                           Size:0 KB
    <https://savannah.gnu.org/file/f2.m?file_id=47789>



    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?57159>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]