This is the mail archive of the gcc-patches@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]

[4.0 PATCH] Fix 25357/ICE in typeid


Hi,
This patch is fix 4.0 branch. Built and tested on i686-pc-linux-gnu
with : configure --prefix=/home/dinar/work/fsfbugz/25357/exec
--enable-languages=c,c++,objc,java,fortran --enable-checking
Is it ok for branch?
                          Thanks, Dinar.
Index: gcc/gimplify.c
===================================================================
--- gcc/gimplify.c	(revision 114982)
+++ gcc/gimplify.c	(working copy)
@@ -1518,7 +1518,7 @@
     }
 
   /* Step 2 is to gimplify the base expression.  */
-  tret = gimplify_expr (p, pre_p, post_p, is_gimple_min_lval, fallback);
+  tret = gimplify_expr (p, pre_p, post_p, is_gimple_min_lval, fallback | fb_lvalue);
   ret = MIN (ret, tret);
 
   /* And finally, the indices and operands to BIT_FIELD_REF.  During this
Index: gcc/ChangeLog
===================================================================
--- gcc/ChangeLog	(revision 114982)
+++ gcc/ChangeLog	(working copy)
@@ -1,3 +1,8 @@
+2006-06-25  Dinar Temirbulatov <dtemirbulatov@gmail.com>
+	PR c++/25357
+	* gimplify.c (gimplify_compound_lval): Allow fb_lvalue in 
+	base expression.
+
 2006-06-23  Richard Guenther  <rguenther@suse.de>
 
 	PR middle-end/28045

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