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:  Interpreter Severity:  3 - Normal
Priority:  3 - Low Item Group:  WTF, Matlab?!?
Status:  Confirmed Assigned to:  None
Originator Name:  Open/Closed:  Open
Release:  dev Operating System:  GNU/Linux

Add a New Comment(Rich Markup)

You are not logged in

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


( Jump to the original submission)

Thu 08 Dec 2016 04:14:29 AM UTC, comment #6:

still exists in 4.2.0. Octave errors on 4 empty string examples in original submission, while Matlab 2016b produces:

Nicholas Jankowski <nrjank>
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 Files:

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 nrjank (Posted a comment)
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by jwe (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 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-12-31 rik5 Priority5 - Normal => 3 - Low
    2014-12-31 jwe Item GroupIncorrect Result => WTF, Matlab?!?
    2013-06-22 rik5 StatusNone => Confirmed

    Back to the top

    Powered by Savane 3.3