octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #49028] Selecting items from a struct array wi


From: anonymous
Subject: [Octave-bug-tracker] [bug #49028] Selecting items from a struct array without the first element produces garbage
Date: Thu, 8 Sep 2016 13:53:14 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0

URL:
  <http://savannah.gnu.org/bugs/?49028>

                 Summary: Selecting items from a struct array without the
first element produces garbage
                 Project: GNU Octave
            Submitted by: None
            Submitted on: Thu 08 Sep 2016 01:53:11 PM UTC
                Category: Interpreter
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: Pekka Paalanen
        Originator Email: address@hidden
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 3.8.2
        Operating System: GNU/Linux

    _______________________________________________________

Details:

See the attached script for an repeatable test case. I would expect it to
print a series of 'B' characters, but it prints instead e.g.
ans = ACBBCBBCBBACABBBAACBACAABBBAAAAC

This happens only when the first element of the struct array is not set.

I wrote this on octave 3.8.2, but JordiGH on #octave said it is also happening
on 4.0.3. He may or may not have taken a look at fixing it.




    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Thu 08 Sep 2016 01:53:11 PM UTC  Name: struct_array_nul_bug.m  Size:
601B   By: None

<http://savannah.gnu.org/bugs/download.php?file_id=38449>

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?49028>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]