Mercurial > octave
changeset 32810:21573c11e632
Use correct column number when reporting duplicate subfunction parse error.
* oct-parse.yy (base_parser::make_fcn_name): Add one to column before calling
bison_error().
author | Rik <rik@octave.org> |
---|---|
date | Mon, 22 Jan 2024 19:52:32 -0800 |
parents | aeb8f8438dd5 |
children | dcaba777597f |
files | libinterp/parse-tree/oct-parse.yy |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libinterp/parse-tree/oct-parse.yy Mon Jan 22 19:20:02 2024 +0100 +++ b/libinterp/parse-tree/oct-parse.yy Mon Jan 22 19:52:32 2024 -0800 @@ -3919,7 +3919,7 @@ if (! m_function_scopes.name_current_scope (id_name)) { bison_error ("duplicate subfunction or nested function name", - id->line (), id->column ()); + id->line (), id->column () + 1); delete id; return nullptr;