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

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

[Octave-bug-tracker] [bug #41178] clang: ov-classdef.h: constructing a m


From: anonymous
Subject: [Octave-bug-tracker] [bug #41178] clang: ov-classdef.h: constructing a map of an incomplete type
Date: Wed, 22 Jul 2015 01:48:32 +0000
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:39.0) Gecko/20100101 Firefox/39.0

Follow-up Comment #11, bug #41178 (project octave):

I can build with FreeBSD/clang3.4.1 with fllowing patch
 (ofcause with other patch from ports)
Just move mark_as_constructed function to .cc file.



--- libinterp/octave-value/ov-classdef.h.orig   2015-05-23 23:21:53.000000000
+0900
+++ libinterp/octave-value/ov-classdef.h        2015-07-22 10:39:22.000000000
+0900
@@ -438,7 +438,7 @@
 
   void mark_as_constructed (void) { ctor_list.clear (); }
 
-  void mark_as_constructed (const cdef_class& cls) { ctor_list.erase (cls);
}
+  void mark_as_constructed (const cdef_class& cls);
 
   bool is_constructed (void) const { return ctor_list.empty (); }
 

--- libinterp/octave-value/ov-classdef.cc.orig  2015-05-23 23:21:53.000000000
+0900
+++ libinterp/octave-value/ov-classdef.cc       2015-07-22 10:39:22.000000000
+0900
@@ -1937,6 +1937,11 @@
   return true;
 }
 
+void cdef_object_scalar::mark_as_constructed (const cdef_class& cls)
+{
+  ctor_list.erase (cls);
+}
+
 handle_cdef_object::~handle_cdef_object (void)
 {
 #if DEBUG_TRACE






    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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