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

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

[Octave-bug-tracker] [bug #33014] Assignment of a class to a scalar stru


From: David Bateman
Subject: [Octave-bug-tracker] [bug #33014] Assignment of a class to a scalar structure seg faults
Date: Tue, 12 Apr 2011 15:39:03 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.9.2.16) Gecko/20110319 Firefox/3.6.16

Follow-up Comment #2, bug #33014 (project octave):

Ok a fix that addresses this bug completely while still addressing the big
#32182 is

--- src/ov-class.cc~ 2011-02-08 11:00:52.000000000 +0100
+++ src/ov-class.cc 2011-04-05 23:26:56.000000000 +0200
@@ -125,7 +125,7 @@

// Here we are just looking to see if FCN is a method or constructor
// for any class, not specifically this one.
- if (fcn->is_class_method () || fcn->is_class_constructor ())
+ if (fcn && (fcn->is_class_method () || ! fcn->is_class_constructor ()))
retval = fcn->dispatch_class (); 

However, I'm really not sure that this is the right fix. Jaroslav, could you
confirm that this is the right thing to do?

D.

PS. (bit the bullet and requested a password change on savannah so I no longer
have to post anonymously)

    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Message posté via/par Savannah
  http://savannah.gnu.org/




reply via email to

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