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 20 Jun 2011 05:04:19 PM UTC  
 
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 31 Dec 2014 08:08:11 PM UTC, 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 31 Dec 2014 07:50:32 PM UTC, 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 31 Dec 2014 07:28:55 PM UTC, 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 16 Mar 2014 06:54:11 PM UTC, 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 22 Jun 2013 02:21:52 AM UTC, 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 20 Jun 2011 05:04:19 PM UTC, 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 31 Dec 2014 08:08:11 PM UTCrik5Priority5 - Normal=>3 - Low
    Wed 31 Dec 2014 07:50:32 PM UTCjweItem GroupIncorrect Result=>WTF, Matlab?!?
    Sat 22 Jun 2013 02:21:52 AM UTCrik5StatusNone=>Confirmed

    Back to the top


    Powered by Savane 3.1-cleanup