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 middle-end/20739] [4.0/4.1 regression] ICE in gimplify_addr_expr


------- Additional Comments From steven at gcc dot gnu dot org  2005-04-03 14:49 -------
We ICE on an assert: 
#ifdef ENABLE_CHECKING 
            tree t_op0 = TREE_TYPE (op0); 
            gcc_assert ((TREE_CODE (t_op0) == ARRAY_TYPE 
                        && POINTER_TYPE_P (t_expr) 
                        && cpt_same_type (TREE_TYPE (t_op0), 
                                          TREE_TYPE (t_expr)) 
                        && POINTER_TYPE_P (t_op00) 
                        && cpt_same_type (t_op0, TREE_TYPE (t_op00))) || 1); 
#endif 
 
Without the assert, the compilation continues and appears to produce the 
right code too.  What is the rationale for this assert?? 

-- 


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


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