This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/20739] [4.0/4.1 regression] ICE in gimplify_addr_expr
- From: "steven at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Apr 2005 14:49:32 -0000
- Subject: [Bug middle-end/20739] [4.0/4.1 regression] ICE in gimplify_addr_expr
- References: <20050403142858.20739.steven@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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