Author: lidr
Date: 2011-04-01 10:21:59 -0400 (Fri, 01 Apr 2011)
New Revision: 3531

Modified:
   trunk/osprey/wgen/wgen_decl.cxx
Log:
Fix bug 746

The removed lines were introduced in r3464. They should not have been included
in that function and led to the wgen segfault reported in the bug.

Approved by Jian-Xin Lai


Modified: trunk/osprey/wgen/wgen_decl.cxx
===================================================================
--- trunk/osprey/wgen/wgen_decl.cxx     2011-03-31 17:04:20 UTC (rev 3530)
+++ trunk/osprey/wgen/wgen_decl.cxx     2011-04-01 14:21:59 UTC (rev 3531)
@@ -4183,21 +4183,6 @@
 
   gs_t       init;
 
-  gs_t type_binfo, basetypes;
-
-  if ((type_binfo = gs_type_binfo(type)) != NULL &&
-      (basetypes = gs_binfo_base_binfos(type_binfo)) != NULL) {
-
-    gs_t list;
-    for (list = basetypes; gs_code(list) != EMPTY; list = gs_operand(list, 1)) 
{
-      gs_t binfo = gs_operand(list, 0);
-      gs_t basetype = gs_binfo_type(binfo);
-      if (!is_empty_base_class(basetype) || !gs_binfo_virtual_p(binfo)) {
-        fld = FLD_next (fld);
-      }
-    }
-  }
-
   while (field && gs_tree_code(field) != GS_FIELD_DECL)
     field = next_real_field(type, field);
 


------------------------------------------------------------------------------
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself; 
WebMatrix provides all the features you need to develop and 
publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
_______________________________________________
Open64-devel mailing list
Open64-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/open64-devel

Reply via email to