bugGNU Octave - Bugs: bug #52178, Misleading warning message when...

 
 

bug #52178: Misleading warning message when registering operator for user defined types

Submitter:  None
Submitted:  Fri 06 Oct 2017 03:12:19 PM UTC
   
 
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Other
Status:  Need Info Assigned to:  None
Originator Name:  Maximilian Behr Originator Email:  -email is unavailable-
Open/Closed:  * Open Release:  * dev
Operating System:  * Any Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 08 Oct 2017 07:21:02 PM UTC, comment #2: 

Hi,
yes thats the point the wrong variable is used twice.

I got the following warning message:

warning: duplicate binary operator '+' for types 'matrix' and 'matrix'
warning: duplicate binary operator '-' for types 'matrix' and 'matrix'
warning: duplicate binary operator '*' for types 'matrix' and 'matrix'

The point is i have never defined / overwritten a binary operation
using 'matrix' vs. 'matrix'.

Bests,
Maximilian Behr

Maximilian Behr <mbehr>
Fri 06 Oct 2017 06:07:06 PM UTC, comment #1: 

Can you give a hint to clarify what the problem is? Is it that t1_name is mentioned twice? That's the problem I see but I want to be sure it's what you are actually reporting.

Mike Miller <mtmiller>
Group Member
Fri 06 Oct 2017 03:12:19 PM UTC, original submission:  

Dear Octave Team,

i am currently working on a Octave interface for the upcoming
C-M.E.S.S. library.
I have interfaced an own Matrix Type with binary/unary operations etc.
When i install my own Type with the operations twice a get a misleading warning message.

The Problem is in libinterp/ov-typeinfo.cc.

The functions

bool
octave_value_typeinfo::do_register_binary_op (octave_value::binary_op op,
 int t1,
 int t2,
 octave_value_typeinfo::binary_op_fcn f)

bool
octave_value_typeinfo::do_register_binary_op (octave_value::compound_binary_op op,
 int t1,
 int t2,
 octave_value_typeinfo::binary_op_fcn f)

bool
octave_value_typeinfo::do_register_cat_op
(int t1,
 int t2,
 octave_value_typeinfo::cat_op_fcn f)

are effected. The warning function is called with wrong args.

Bests,
Maximilian Behr






Anonymous

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by mbehr (Posted a comment)
  • -email is unavailable- added by mtmiller (Posted a comment)
  • -email is unavailable- added by None (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-10-06 mtmiller StatusNone Need Info

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code