bugGNU Octave - Bugs: bug #50011, failure to report error on...

 
 

bug #50011: failure to report error on conflicting methods for classdef

Submitted by:  A.R. Burgers <arb>
Submitted on:  Tue 10 Jan 2017 08:09:35 AM UTC  
 
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Missed Error or Warning
Status:  Confirmed Assigned to:  None
Originator Name:  Open/Closed:  Open
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.

 

Sat 04 Mar 2017 10:07:37 AM UTC, comment #4: 

I attached a bit a polished version of my patch

(file #39885)

A.R. Burgers <arb>
Sun 05 Feb 2017 09:21:28 PM UTC, comment #3: 

attached file p50011.txt could maybe serve as starting point for a patch. With this patch applied octave run_c.m produces

error: method m_s: conflicting definitions in classes sa and sb

(file #39674)

A.R. Burgers <arb>
Thu 12 Jan 2017 04:09:24 AM UTC, comment #2: 

Confirmed.  Octave always uses the first defined method, rather than throwing an error when there are two choices.

Rik <rik5>
Project Administrator
Tue 10 Jan 2017 09:31:17 AM UTC, comment #1: 

something went missing ...
matlab R2015B gives:

>> run_c
Error using c
Method 'm_s' defined in class 'c' has 2 or more conflicting definitions.

Error in run_c (line 1)
ci = c;

A.R. Burgers <arb>
Tue 10 Jan 2017 08:09:35 AM UTC, original submission:  

Running attached run_c.m gives on octave:

ans = sa

matlab R2015B gives:

A.R. Burgers <arb>

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #39885:  p50011_v2.txt added by arb (997B - text/plain)
file #39674:  p50011.txt added by arb (1KiB - text/plain)
file #39418:  sa.m added by arb (74B - d2l/unknowntype)
file #39419:  c.m added by arb (86B - d2l/unknowntype)
file #39420:  sb.m added by arb (74B - d2l/unknowntype)
file #39421:  run_c.m added by arb (16B - d2l/unknowntype)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by jwe (Updated the item)
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by arb (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 8 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-03-04 arb Attached File- => Added p50011_v2.txt, #39885
    2017-02-05 arb Attached File- => Added p50011.txt, #39674
    2017-01-17 jwe Item GroupIncorrect Result => Missed Error or Warning
    2017-01-12 rik5 StatusNone => Confirmed
    2017-01-10 arb Attached File- => Added sa.m, #39418
        Attached File- => Added c.m, #39419
        Attached File- => Added sb.m, #39420
        Attached File- => Added run_c.m, #39421

    Back to the top


    Powered by Savane 3.5