This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/42703] [4.5 Regression] ICE in generate_subtree_copies with out of bounds array access
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 Jan 2010 20:48:52 -0000
- Subject: [Bug tree-optimization/42703] [4.5 Regression] ICE in generate_subtree_copies with out of bounds array access
- References: <bug-42703-11764@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from pinskia at gcc dot gnu dot org 2010-01-12 20:48 -------
This code is undefined because out of bounds access of the array. Also note
the use of the union is not needed here really as char is a character type
which means it can be used to access the ScmUInt64 without any aliasing issues.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |pinskia at gcc dot gnu dot
| |org
Summary|[4.5 Regression] ICE in |[4.5 Regression] ICE in
|generate_subtree_copies, at |generate_subtree_copies with
|tree-sra.c:2003 |out of bounds array access
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42703