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

 
 

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

Submitted by:  None
Submitted on:  Fri 06 Oct 2017 03:12:19 PM UTC  
 
Category: InterpreterSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Other
Status: Need InfoAssigned to: None
Originator Name: Maximilian BehrOriginator Email: -unavailable-
Open/Closed: OpenRelease: 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.

 

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>
Project Administrator
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 File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

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

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 06 Oct 2017 06:07:06 PM UTCmtmillerStatusNone=>Need Info

    Back to the top


    Powered by Savane 3.1-cleanup1