bugGNU Octave - Bugs: bug #56326, error message prints wrong line...


bug #56326: error message prints wrong line when reporting a syntax error

Submitted by:  Carlo de Falco <cdf>
Submitted on:  Wed 15 May 2019 03:40:10 PM UTC  
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Inaccurate Result
Status:  Duplicate Assigned to:  None
Originator Name:  Open/Closed:  Closed
Release:  dev Operating System:  Any

Add a New Comment (Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Thu 16 May 2019 09:46:50 PM UTC, comment #2: 

I can confirm that after an update this worrks correctly.

Carlo de Falco <cdf>
Project Member
Wed 15 May 2019 09:14:08 PM UTC, comment #1: 

This looks a lot like bug #56266, can you make sure you have updated the default branch to include that fix and verify that this is still a problem? Your example works correctly for me.

Mike Miller <mtmiller>
Project Administrator
Wed 15 May 2019 03:40:10 PM UTC, original submission:  

Consider a file named bugtest.m containing the following code

function a = bugtest (b)

  a = (b(1), b(2));


when executing the function, octave indicates the correct line number for the line containing the syntax error, but prints the first line in the file instead:

>> bugtest (1)
parse error near line 5 of file /private/tmp/bugtest.m

  syntax error

>>> function a = bugtest (b)


Carlo de Falco <cdf>
Project Member


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

No files currently attached


   bug dependencies.

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by cdf (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.




    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-05-16 mtmiller Open/ClosedOpen => Closed
        Dependencies- => Depends on bugs #56266
    2019-05-15 mtmiller StatusNone => Duplicate

    Back to the top

    Powered by Savane 3.5