This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/12573] [3.4 Regression ] ICE (segfault) with Boost.Python


------- Additional Comments From giovannibajo at libero dot it  2003-11-22 00:37 -------
A problem with detection of dependness. This is the patch for it. If anybody 
wants to test it for me, feel free to do it, otherwise I'll do it in a week or 
so.


*** pt.c.orig   Sat Oct 18 19:35:46 2003
--- pt.c        Sat Nov 22 01:28:31 2003
*************** value_dependent_expression_p (tree expre
*** 11543,11548 ****
--- 11569,11576 ----
      }
    if (TREE_CODE (expression) == SCOPE_REF)
      return dependent_scope_ref_p (expression, value_dependent_expression_p);
+   if (TREE_CODE (expression) == COMPONENT_REF)
+     return value_dependent_expression_p (TREE_OPERAND (expression, 0));
    /* A constant expression is value-dependent if any subexpression is
       value-dependent.  */
    if (IS_EXPR_CODE_CLASS (TREE_CODE_CLASS (TREE_CODE (expression))))


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |giovannibajo at libero dot
                   |dot org                     |it
             Status|NEW                         |ASSIGNED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12573


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]