bugGNU Octave - Bugs: bug #33605, concatenation of struct with empty...

 
 

bug #33605: concatenation of struct with empty string fails

Submitted by:  John W. Eaton <jwe>
Submitted on:  Mon Jun 20 17:04:19 2011  
 
Category: InterpreterSeverity: 3 - Normal
Priority: 3 - LowItem Group: WTF, Matlab?!?
Status: ConfirmedAssigned to: None
Originator Name: Open/Closed: Open
Release: devOperating System: GNU/Linux

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

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

 

Wed Dec 31 20:08:11 2014, comment #5:

No, I wasn't going to close it; Just thought that it should be correctly labeled. I'm going to lower the priority as well since someone could pay to have this fixed, but the current behavior doesn't bother me enough to get out of bed and on to the computer.

Rik <rik5>
Project Administrator
Wed Dec 31 19:50:32 2014, comment #4:

I changed the category. I wouldn't close this report though, it's sitll a valid Matlab incompatibility. I guess the rule is just to check whether something is empty and if so skip it in the concatenation. I don't know for sure though.

John W. Eaton <jwe>
Project Administrator
Wed Dec 31 19:28:55 2014, comment #3:

Should this bug be classified as Incorrect Result, or Matlab Compatibility? It seems utterly weird to try and concatenate a string with a struct and I would think the correct behavior is to error out.

Rik <rik5>
Project Administrator
Sun Mar 16 18:54:11 2014, comment #2:

The issue is still present (3/16/14). Concatenation of an empty string value, '' or "", with a struct results in an error.

Rik <rik5>
Project Administrator
Sat Jun 22 02:21:52 2013, comment #1:

This is an old report, from 2011, but the issue is still there (6/21/13). Since the parser has undergone significant work, can we make a call about whether we should support promoting empty strings to nulls for concatenations with structs?

Rik <rik5>
Project Administrator
Mon Jun 20 17:04:19 2011, original submission:

The following should all work

but the character string versions fail on invalid conversions.

Should we be treating literal null matrices specially in tree_matrix::rvalue1 in pt-mat.cc? Because of the way that function handles initial empty values, it seems that functions like
oct_catop_matrix_struct in op-struct.cc are not called in all cases. Or maybe they are never called? In what cases are they be called? Should they be called for all empty value cases? Just for non-literal empty matrices? At this point, I'm obviously not sure what the right fix is...

John W. Eaton <jwe>
Project Administrator

 

(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 rik5 (Posted a comment)
  • -unavailable- added by jwe (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):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed Dec 31 20:08:11 2014rik5Priority5 - Normal=>3 - Low
    Wed Dec 31 19:50:32 2014jweItem GroupIncorrect Result=>WTF, Matlab?!?
    Sat Jun 22 02:21:52 2013rik5StatusNone=>Confirmed

    Back to the top


    Powered by Savane 3.1-cleanup